Class: Barometer::WeatherService::WundergroundV1::CurrentApi
- Inherits:
-
Utils::Api
- Object
- Utils::Api
- Barometer::WeatherService::WundergroundV1::CurrentApi
show all
- Defined in:
- lib/barometer/weather_services/wunderground_v1/current_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) ⇒ CurrentApi
Returns a new instance of CurrentApi.
7
8
9
|
# File 'lib/barometer/weather_services/wunderground_v1/current_api.rb', line 7
def initialize(query)
@query = WundergroundV1::Query.new(query)
end
|
Instance Method Details
#unwrap_nodes ⇒ Object
15
16
17
|
# File 'lib/barometer/weather_services/wunderground_v1/current_api.rb', line 15
def unwrap_nodes
['current_observation']
end
|
#url ⇒ Object
11
12
13
|
# File 'lib/barometer/weather_services/wunderground_v1/current_api.rb', line 11
def url
'http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml'
end
|