class Fit4Ruby::TrainingStatus
This class corresponds to the training_status message.
This is not part of the officially documented FIT API. Names may change in the future if the real Garmin names get known.
Public Class Methods
new(field_values = {})
click to toggle source
Calls superclass method
Fit4Ruby::FitDataRecord::new
# File lib/fit4ruby/TrainingStatus.rb, line 23 def initialize(field_values = {}) super('training_status') set_field_values(field_values) end
Public Instance Methods
<=>(fdr)
click to toggle source
Ensure that FitDataRecords have a deterministic sequence. Device infos are sorted by device_index.
# File lib/fit4ruby/TrainingStatus.rb, line 30 def <=>(fdr) @timestamp == fdr.timestamp ? @message.name == fdr.message.name ? @device_index <=> fdr.device_index : RecordOrder.index(@message.name) <=> RecordOrder.index(fdr.message.name) : @timestamp <=> fdr.timestamp end
check(index)
click to toggle source
# File lib/fit4ruby/TrainingStatus.rb, line 39 def check(index) end