Class: Tenkit::WeatherResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/tenkit/weather_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#raw

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ WeatherResponse

Returns a new instance of WeatherResponse.



7
8
9
10
# File 'lib/tenkit/weather_response.rb', line 7

def initialize(response)
  super
  @weather = Weather.new(response)
end

Instance Attribute Details

#weatherObject (readonly)

Returns the value of attribute weather.



5
6
7
# File 'lib/tenkit/weather_response.rb', line 5

def weather
  @weather
end