PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/DDG/Spice/Expatistan.pm

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