Class: WeatherHacks::LWWS::Temperature

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

Direct Known Subclasses

Celsius, Fahrenheit

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#maxObject (readonly)

Returns the value of attribute max.



69
70
71
# File 'lib/weatherhacks/lwws.rb', line 69

def max
  @max
end

#minObject (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