Class: NoaaWeatherClient::Templates::ForecastDay

Inherits:
Struct
  • Object
show all
Defined in:
lib/noaa_weather_client/cli/templates.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dayObject

Returns the value of attribute day

Returns:

  • (Object)

    the current value of day



31
32
33
# File 'lib/noaa_weather_client/cli/templates.rb', line 31

def day
  @day
end

Instance Method Details

#to_sObject



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