Class: MyWeatherForecast::DaysAhead

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

Instance Method Summary collapse

Constructor Details

#initialize(x, tlabel) ⇒ DaysAhead

Returns a new instance of DaysAhead.



52
53
54
55
56
57
# File 'lib/myweatherforecast.rb', line 52

def initialize(x, tlabel)
  
  @x = x
  @tlabel = tlabel

end

Instance Method Details

#summaryObject



63
64
65
# File 'lib/myweatherforecast.rb', line 63

def summary()
  @x.summary
end

#to_sObject



59
60
61
# File 'lib/myweatherforecast.rb', line 59

def to_s
  "%s" % [@x.summary]
end