PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/Expatistan.pm

https://github.com/tarnfeld/zeroclickinfo-spice
Perl | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 04fab88a0536f507539823a5a15c57ea MD5 | raw file
  1. package DDG::Spice::Expatistan;
  2. use DDG::Spice;
  3. triggers query_lc => qr/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 $_;
  16. };
  17. 1;