Class: Barometer::Query::Service::YahooWeather::Api

Inherits:
Utils::Api
  • Object
show all
Defined in:
lib/barometer/query/services/apis/yahoo_weather.rb

Instance Attribute Summary

Attributes inherited from Utils::Api

#query

Instance Method Summary collapse

Methods inherited from Utils::Api

#current_query, #get, #initialize

Constructor Details

This class inherits a constructor from Barometer::Utils::Api

Instance Method Details

#paramsObject



10
11
12
# File 'lib/barometer/query/services/apis/yahoo_weather.rb', line 10

def params
  format_params
end

#unwrap_nodesObject



14
15
16
# File 'lib/barometer/query/services/apis/yahoo_weather.rb', line 14

def unwrap_nodes
  ['rss', 'channel']
end

#urlObject



6
7
8
# File 'lib/barometer/query/services/apis/yahoo_weather.rb', line 6

def url
  'http://weather.yahooapis.com/forecastrss'
end