class Weathercom::DayPartForecast
Public Class Methods
new(info)
click to toggle source
# File lib/weathercom/day_part_forecast.rb, line 5 def initialize(info) @info = info.dup.freeze end
Public Instance Methods
cut_narrative()
click to toggle source
Narrative without the temperature and wind speed, which is available via other attributes
# File lib/weathercom/day_part_forecast.rb, line 39 def cut_narrative narrative.sub(/\..*/, '') end