Class: WeatherHacks::LWWS::Celsius
- Inherits:
-
Temperature
- Object
- Temperature
- WeatherHacks::LWWS::Celsius
- Defined in:
- lib/weatherhacks/lwws.rb
Instance Attribute Summary
Attributes inherited from Temperature
Instance Method Summary collapse
-
#initialize(elt) ⇒ Celsius
constructor
A new instance of Celsius.
Methods inherited from Temperature
Constructor Details
#initialize(elt) ⇒ Celsius
Returns a new instance of Celsius.
76 77 78 79 80 81 |
# File 'lib/weatherhacks/lwws.rb', line 76 def initialize(elt) max = elt.elements["max/celsius"].text @max = max.to_i if max min = elt.elements["min/celsius"].text @max = min.to_i if min end |