Class: WeatherHacks::LWWS::Temperature
- Inherits:
-
Object
- Object
- WeatherHacks::LWWS::Temperature
- Defined in:
- lib/weatherhacks/lwws.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
Class Method Summary collapse
Instance Attribute Details
#max ⇒ Object (readonly)
Returns the value of attribute max.
69 70 71 |
# File 'lib/weatherhacks/lwws.rb', line 69 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
69 70 71 |
# File 'lib/weatherhacks/lwws.rb', line 69 def min @min end |
Class Method Details
.create(elt) ⇒ Object
70 71 72 |
# File 'lib/weatherhacks/lwws.rb', line 70 def self.create(elt) return Celsius.new(elt), Fahrenheit.new(elt) end |