Class: Joule::IBike::Properties
- Inherits:
-
Object
- Object
- Joule::IBike::Properties
- Defined in:
- lib/joule/ibike/properties.rb
Constant Summary collapse
- ENGLISH_UNITS =
"english"
- METRIC_UNITS =
"metric"
Instance Attribute Summary collapse
-
#calibration_weight ⇒ Object
Returns the value of attribute calibration_weight.
-
#cda ⇒ Object
Returns the value of attribute cda.
-
#cm ⇒ Object
Returns the value of attribute cm.
-
#crr ⇒ Object
Returns the value of attribute crr.
-
#date_time ⇒ Object
Returns the value of attribute date_time.
-
#energy ⇒ Object
Returns the value of attribute energy.
-
#record_interval ⇒ Object
Returns the value of attribute record_interval.
-
#riding_tilt ⇒ Object
Returns the value of attribute riding_tilt.
-
#starting_elevation ⇒ Object
Returns the value of attribute starting_elevation.
-
#starting_pressure ⇒ Object
Returns the value of attribute starting_pressure.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
-
#total_climbing ⇒ Object
Returns the value of attribute total_climbing.
-
#total_weight ⇒ Object
Returns the value of attribute total_weight.
-
#units ⇒ Object
Returns the value of attribute units.
-
#version ⇒ Object
Returns the value of attribute version.
-
#wheel_size ⇒ Object
Returns the value of attribute wheel_size.
-
#wind_scaling ⇒ Object
Returns the value of attribute wind_scaling.
Instance Method Summary collapse
- #distance_units_are_english? ⇒ Boolean
- #distance_units_are_metric? ⇒ Boolean
- #speed_units_are_english? ⇒ Boolean
- #units_are_english? ⇒ Boolean
- #units_are_metric? ⇒ Boolean
Instance Attribute Details
#calibration_weight ⇒ Object
Returns the value of attribute calibration_weight.
20 21 22 |
# File 'lib/joule/ibike/properties.rb', line 20 def calibration_weight @calibration_weight end |
#cda ⇒ Object
Returns the value of attribute cda.
22 23 24 |
# File 'lib/joule/ibike/properties.rb', line 22 def cda @cda end |
#cm ⇒ Object
Returns the value of attribute cm.
21 22 23 |
# File 'lib/joule/ibike/properties.rb', line 21 def cm @cm end |
#crr ⇒ Object
Returns the value of attribute crr.
23 24 25 |
# File 'lib/joule/ibike/properties.rb', line 23 def crr @crr end |
#date_time ⇒ Object
Returns the value of attribute date_time.
9 10 11 |
# File 'lib/joule/ibike/properties.rb', line 9 def date_time @date_time end |
#energy ⇒ Object
Returns the value of attribute energy.
11 12 13 |
# File 'lib/joule/ibike/properties.rb', line 11 def energy @energy end |
#record_interval ⇒ Object
Returns the value of attribute record_interval.
12 13 14 |
# File 'lib/joule/ibike/properties.rb', line 12 def record_interval @record_interval end |
#riding_tilt ⇒ Object
Returns the value of attribute riding_tilt.
19 20 21 |
# File 'lib/joule/ibike/properties.rb', line 19 def riding_tilt @riding_tilt end |
#starting_elevation ⇒ Object
Returns the value of attribute starting_elevation.
13 14 15 |
# File 'lib/joule/ibike/properties.rb', line 13 def starting_elevation @starting_elevation end |
#starting_pressure ⇒ Object
Returns the value of attribute starting_pressure.
17 18 19 |
# File 'lib/joule/ibike/properties.rb', line 17 def starting_pressure @starting_pressure end |
#temperature ⇒ Object
Returns the value of attribute temperature.
16 17 18 |
# File 'lib/joule/ibike/properties.rb', line 16 def temperature @temperature end |
#total_climbing ⇒ Object
Returns the value of attribute total_climbing.
14 15 16 |
# File 'lib/joule/ibike/properties.rb', line 14 def total_climbing @total_climbing end |
#total_weight ⇒ Object
Returns the value of attribute total_weight.
10 11 12 |
# File 'lib/joule/ibike/properties.rb', line 10 def total_weight @total_weight end |
#units ⇒ Object
Returns the value of attribute units.
8 9 10 |
# File 'lib/joule/ibike/properties.rb', line 8 def units @units end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/joule/ibike/properties.rb', line 7 def version @version end |
#wheel_size ⇒ Object
Returns the value of attribute wheel_size.
15 16 17 |
# File 'lib/joule/ibike/properties.rb', line 15 def wheel_size @wheel_size end |
#wind_scaling ⇒ Object
Returns the value of attribute wind_scaling.
18 19 20 |
# File 'lib/joule/ibike/properties.rb', line 18 def wind_scaling @wind_scaling end |
Instance Method Details
#distance_units_are_english? ⇒ Boolean
25 26 27 |
# File 'lib/joule/ibike/properties.rb', line 25 def distance_units_are_english? self.units_are_english? end |
#distance_units_are_metric? ⇒ Boolean
29 30 31 |
# File 'lib/joule/ibike/properties.rb', line 29 def distance_units_are_metric? self.units_are_metric? end |
#speed_units_are_english? ⇒ Boolean
33 34 35 |
# File 'lib/joule/ibike/properties.rb', line 33 def speed_units_are_english? self.units_are_english? end |
#units_are_english? ⇒ Boolean
41 42 43 |
# File 'lib/joule/ibike/properties.rb', line 41 def units_are_english? self.units.eql?(ENGLISH_UNITS) end |
#units_are_metric? ⇒ Boolean
45 46 47 |
# File 'lib/joule/ibike/properties.rb', line 45 def units_are_metric? self.units.eql?(METRIC_UNITS) end |