Class: NoaaWeatherClient::Templates::ForecastDay
- Inherits:
-
Struct
- Object
- Struct
- NoaaWeatherClient::Templates::ForecastDay
- Defined in:
- lib/noaa_weather_client/cli/templates.rb
Instance Attribute Summary collapse
-
#day ⇒ Object
Returns the value of attribute day.
Instance Method Summary collapse
Instance Attribute Details
#day ⇒ Object
Returns the value of attribute day
31 32 33 |
# File 'lib/noaa_weather_client/cli/templates.rb', line 31 def day @day end |
Instance Method Details
#to_s ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/noaa_weather_client/cli/templates.rb', line 32 def to_s <<-template Day: #{day.name} -------------------------------------------------------------------------------- High: #{day.maximum_temperature} F Low: #{day.minimum_temperature} F Summary: #{day.weather_summary} template end |