Class: MyWeatherForecast::DaysAhead
- Inherits:
-
Object
- Object
- MyWeatherForecast::DaysAhead
- Defined in:
- lib/myweatherforecast.rb
Instance Method Summary collapse
-
#initialize(x, tlabel) ⇒ DaysAhead
constructor
A new instance of DaysAhead.
- #summary ⇒ Object
- #to_s ⇒ Object
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
#summary ⇒ Object
63 64 65 |
# File 'lib/myweatherforecast.rb', line 63 def summary() @x.summary end |
#to_s ⇒ Object
59 60 61 |
# File 'lib/myweatherforecast.rb', line 59 def to_s "%s" % [@x.summary] end |