Class: Barometer::Data::Pressure

Inherits:
ConvertableUnits show all
Defined in:
lib/barometer/data/pressure.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

#inObject



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

def in; imperial; end

#mbObject



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

def mb; metric; end

#unitsObject



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

def units
  metric? ? 'mb' : 'in'
end