Class: Barometer::Data::Pressure
- Inherits:
-
ConvertableUnits
- Object
- SimpleDelegator
- ConvertableUnits
- Barometer::Data::Pressure
- 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
#in ⇒ Object
5 |
# File 'lib/barometer/data/pressure.rb', line 5 def in; imperial; end |
#mb ⇒ Object
4 |
# File 'lib/barometer/data/pressure.rb', line 4 def mb; metric; end |
#units ⇒ Object
7 8 9 |
# File 'lib/barometer/data/pressure.rb', line 7 def units metric? ? 'mb' : 'in' end |