Class: Joule::DataPoint
- Inherits:
-
Object
- Object
- Joule::DataPoint
- Includes:
- Hashable
- Defined in:
- lib/joule/data_point.rb
Instance Attribute Summary collapse
-
#altitude ⇒ Object
Returns the value of attribute altitude.
-
#cadence ⇒ Object
Returns the value of attribute cadence.
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#heartrate ⇒ Object
Returns the value of attribute heartrate.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#power ⇒ Object
Returns the value of attribute power.
-
#speed ⇒ Object
Returns the value of attribute speed.
-
#time ⇒ Object
Returns the value of attribute time.
-
#time_of_day ⇒ Object
Returns the value of attribute time_of_day.
-
#time_with_pauses ⇒ Object
Returns the value of attribute time_with_pauses.
-
#torque ⇒ Object
Returns the value of attribute torque.
Instance Method Summary collapse
-
#initialize ⇒ DataPoint
constructor
A new instance of DataPoint.
Methods included from Hashable
Constructor Details
#initialize ⇒ DataPoint
Returns a new instance of DataPoint.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/joule/data_point.rb', line 18 def initialize() @altitude = 0.0 @cadence = 0 @distance = 0.0 @heartrate = 0 @latitude = 0.0 @longitude = 0.0 @power = 0.0 @speed = 0.0 @time = 0 @time_of_day = 0 @time_with_pauses= 0 @torque = 0.0 end |
Instance Attribute Details
#altitude ⇒ Object
Returns the value of attribute altitude.
5 6 7 |
# File 'lib/joule/data_point.rb', line 5 def altitude @altitude end |
#cadence ⇒ Object
Returns the value of attribute cadence.
6 7 8 |
# File 'lib/joule/data_point.rb', line 6 def cadence @cadence end |
#distance ⇒ Object
Returns the value of attribute distance.
7 8 9 |
# File 'lib/joule/data_point.rb', line 7 def distance @distance end |
#heartrate ⇒ Object
Returns the value of attribute heartrate.
8 9 10 |
# File 'lib/joule/data_point.rb', line 8 def heartrate @heartrate end |
#latitude ⇒ Object
Returns the value of attribute latitude.
9 10 11 |
# File 'lib/joule/data_point.rb', line 9 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
10 11 12 |
# File 'lib/joule/data_point.rb', line 10 def longitude @longitude end |
#power ⇒ Object
Returns the value of attribute power.
11 12 13 |
# File 'lib/joule/data_point.rb', line 11 def power @power end |
#speed ⇒ Object
Returns the value of attribute speed.
12 13 14 |
# File 'lib/joule/data_point.rb', line 12 def speed @speed end |
#time ⇒ Object
Returns the value of attribute time.
13 14 15 |
# File 'lib/joule/data_point.rb', line 13 def time @time end |
#time_of_day ⇒ Object
Returns the value of attribute time_of_day.
14 15 16 |
# File 'lib/joule/data_point.rb', line 14 def time_of_day @time_of_day end |
#time_with_pauses ⇒ Object
Returns the value of attribute time_with_pauses.
15 16 17 |
# File 'lib/joule/data_point.rb', line 15 def time_with_pauses @time_with_pauses end |
#torque ⇒ Object
Returns the value of attribute torque.
16 17 18 |
# File 'lib/joule/data_point.rb', line 16 def torque @torque end |