Class: Barometer::WeatherService::Yahoo::Api
- Inherits:
-
Utils::Api
- Object
- Utils::Api
- Barometer::WeatherService::Yahoo::Api
show all
- Defined in:
- lib/barometer/weather_services/yahoo/api.rb
Instance Attribute Summary
Attributes inherited from Utils::Api
#query
Instance Method Summary
collapse
Methods inherited from Utils::Api
#current_query, #get, #params
Constructor Details
#initialize(query) ⇒ Api
Returns a new instance of Api.
7
8
9
|
# File 'lib/barometer/weather_services/yahoo/api.rb', line 7
def initialize(query)
@query = Yahoo::Query.new(query)
end
|
Instance Method Details
#unwrap_nodes ⇒ Object
15
16
17
|
# File 'lib/barometer/weather_services/yahoo/api.rb', line 15
def unwrap_nodes
['rss', 'channel']
end
|
#url ⇒ Object
11
12
13
|
# File 'lib/barometer/weather_services/yahoo/api.rb', line 11
def url
'http://weather.yahooapis.com/forecastrss'
end
|