Class: Joule::TCX::Properties

Inherits:
Object
  • Object
show all
Defined in:
lib/joule/tcx/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#date_timeObject

Returns the value of attribute date_time.



4
5
6
# File 'lib/joule/tcx/properties.rb', line 4

def date_time
  @date_time
end

#record_intervalObject

Returns the value of attribute record_interval.



4
5
6
# File 'lib/joule/tcx/properties.rb', line 4

def record_interval
  @record_interval
end

Instance Method Details

#start_time_in_secondsObject



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

def start_time_in_seconds
  (@date_time.hour * 3600) + (@date_time.min * 60) + @date_time.sec
end