Class: Tenkit::HourlyForecast
- Inherits:
-
Object
- Object
- Tenkit::HourlyForecast
- Defined in:
- lib/tenkit/hourly_forecast.rb
Instance Attribute Summary collapse
-
#hours ⇒ Object
readonly
Returns the value of attribute hours.
Instance Method Summary collapse
-
#initialize(hourly_forecast) ⇒ HourlyForecast
constructor
A new instance of HourlyForecast.
Constructor Details
#initialize(hourly_forecast) ⇒ HourlyForecast
Returns a new instance of HourlyForecast.
5 6 7 8 9 |
# File 'lib/tenkit/hourly_forecast.rb', line 5 def initialize(hourly_forecast) return if hourly_forecast.nil? @hours = hourly_forecast['hours'] end |
Instance Attribute Details
#hours ⇒ Object (readonly)
Returns the value of attribute hours.
3 4 5 |
# File 'lib/tenkit/hourly_forecast.rb', line 3 def hours @hours end |