Class: Joule::DataPoint

Inherits:
Object
  • Object
show all
Includes:
Hashable
Defined in:
lib/joule/data_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hashable

#to_hash

Constructor Details

#initializeDataPoint

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

#altitudeObject

Returns the value of attribute altitude.



5
6
7
# File 'lib/joule/data_point.rb', line 5

def altitude
  @altitude
end

#cadenceObject

Returns the value of attribute cadence.



6
7
8
# File 'lib/joule/data_point.rb', line 6

def cadence
  @cadence
end

#distanceObject

Returns the value of attribute distance.



7
8
9
# File 'lib/joule/data_point.rb', line 7

def distance
  @distance
end

#heartrateObject

Returns the value of attribute heartrate.



8
9
10
# File 'lib/joule/data_point.rb', line 8

def heartrate
  @heartrate
end

#latitudeObject

Returns the value of attribute latitude.



9
10
11
# File 'lib/joule/data_point.rb', line 9

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



10
11
12
# File 'lib/joule/data_point.rb', line 10

def longitude
  @longitude
end

#powerObject

Returns the value of attribute power.



11
12
13
# File 'lib/joule/data_point.rb', line 11

def power
  @power
end

#speedObject

Returns the value of attribute speed.



12
13
14
# File 'lib/joule/data_point.rb', line 12

def speed
  @speed
end

#timeObject

Returns the value of attribute time.



13
14
15
# File 'lib/joule/data_point.rb', line 13

def time
  @time
end

#time_of_dayObject

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_pausesObject

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

#torqueObject

Returns the value of attribute torque.



16
17
18
# File 'lib/joule/data_point.rb', line 16

def torque
  @torque
end