Class: Weathercom::DayPartForecast

Inherits:
Object
  • Object
show all
Defined in:
lib/weathercom/day_part_forecast.rb

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ DayPartForecast

Returns a new instance of DayPartForecast.



5
6
7
# File 'lib/weathercom/day_part_forecast.rb', line 5

def initialize(info)
  @info = info.dup.freeze
end

Instance Method Details

#cut_narrativeObject

Narrative without the temperature and wind speed, which is available via other attributes



39
40
41
# File 'lib/weathercom/day_part_forecast.rb', line 39

def cut_narrative
  narrative.sub(/\..*/, '')
end