PageRenderTime 1ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 2ms 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
 1package DDG::Spice::Expatistan;
 2
 3use DDG::Spice;
 4
 5triggers any => "cost of living";
 6
 7spice to => 'http://www.expatistan.com/api/spice?q=$1&api_key={{ENV{DDG_SPICE_EXPATISTAN_APIKEY}}}';
 8
 9primary_example_queries "cost of living in Philadelphia";
10description "See and compare costs of living via Expatistan";
11name "Expatisan";
12icon_url "/i/www.expatistan.com.ico";
13source "Expatisan";
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Expatistan.pm";
15topics "economy_and_finance";
16category "facts";
17attribution github => ['https://github.com/hunterlang','Hunter Lang'];
18
19handle query_lc => sub {
20    return $_ if $_;
21    return;
22};
23
241;