Class: Barometer::Query::Service::YahooPlacefinder::Api
- Inherits:
-
Utils::Api
- Object
- Utils::Api
- Barometer::Query::Service::YahooPlacefinder::Api
show all
- Defined in:
- lib/barometer/query/services/apis/yahoo_placefinder.rb
Instance Attribute Summary
Attributes inherited from Utils::Api
#query
Instance Method Summary
collapse
Methods inherited from Utils::Api
#current_query, #get, #initialize
Instance Method Details
#params ⇒ Object
10
11
12
|
# File 'lib/barometer/query/services/apis/yahoo_placefinder.rb', line 10
def params
{ q: format_query, format: :json }
end
|
#unwrap_nodes ⇒ Object
14
15
16
|
# File 'lib/barometer/query/services/apis/yahoo_placefinder.rb', line 14
def unwrap_nodes
['query', 'results', 0, 'Result']
end
|
#url ⇒ Object
6
7
8
|
# File 'lib/barometer/query/services/apis/yahoo_placefinder.rb', line 6
def url
'http://query.yahooapis.com/v1/public/yql'
end
|