Class: Barometer::Data::Temperature

Inherits:
ConvertableUnits show all
Defined in:
lib/barometer/data/temperature.rb

Instance Method Summary collapse

Methods inherited from ConvertableUnits

#<=>, #imperial, #initialize, #metric, #metric?, #nil?, #to_s

Constructor Details

This class inherits a constructor from Barometer::Data::ConvertableUnits

Instance Method Details

#cObject



4
# File 'lib/barometer/data/temperature.rb', line 4

def c; metric; end

#fObject



5
# File 'lib/barometer/data/temperature.rb', line 5

def f; imperial; end

#unitsObject



7
8
9
# File 'lib/barometer/data/temperature.rb', line 7

def units
  metric? ? 'C' : 'F'
end