Class: Tenkit::WeatherResponse
- Defined in:
- lib/tenkit/weather_response.rb
Instance Attribute Summary collapse
-
#weather ⇒ Object
readonly
Returns the value of attribute weather.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(response) ⇒ WeatherResponse
constructor
A new instance of WeatherResponse.
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
#weather ⇒ Object (readonly)
Returns the value of attribute weather.
5 6 7 |
# File 'lib/tenkit/weather_response.rb', line 5 def weather @weather end |