Class: WeatherWeasel::Conditions
- Inherits:
-
Object
- Object
- WeatherWeasel::Conditions
- Defined in:
- lib/weather_weasel/conditions.rb
Instance Method Summary collapse
-
#initialize(city, state, temperature_format, client) ⇒ Conditions
constructor
A new instance of Conditions.
- #raw_data ⇒ Object
Constructor Details
#initialize(city, state, temperature_format, client) ⇒ Conditions
Returns a new instance of Conditions.
4 5 6 7 8 9 |
# File 'lib/weather_weasel/conditions.rb', line 4 def initialize(city, state, temperature_format, client) @city = city @state = state @temperature_format = temperature_format @client = client end |
Instance Method Details
#raw_data ⇒ Object
11 12 13 |
# File 'lib/weather_weasel/conditions.rb', line 11 def raw_data @data ||= @client.parse_url("conditions/q/#{@state}/#{@city}.json") end |