PageRenderTime 55ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/Expatistan.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 24 lines | 18 code | 6 blank | 0 comment | 1 complexity | 25469ac10bddd3e09b218e5236d359b6 MD5 | raw file
  1. package DDG::Spice::Expatistan;
  2. use DDG::Spice;
  3. primary_example_queries "cost of living in Philadelphia";
  4. description "See and compare costs of living via Expatistan";
  5. name "Expatisan";
  6. icon_url "/i/www.expatistan.com.ico";
  7. source "Expatisan";
  8. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Expatistan.pm";
  9. topics "economy_and_finance";
  10. category "facts";
  11. attribution github => ['https://github.com/hunterlang','Hunter Lang'];
  12. triggers any => "cost of living";
  13. spice to => 'http://www.expatistan.com/api/spice?q=$1&api_key={{ENV{DDG_SPICE_EXPATISTAN_APIKEY}}}';
  14. handle query_lc => sub {
  15. return $_ if $_;
  16. return;
  17. };
  18. 1;