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