Class: Fit4Ruby::UserProfile

Inherits:
FitDataRecord show all
Defined in:
lib/fit4ruby/UserProfile.rb

Overview

This class corresponds to the old_user_profile FIT message.

Constant Summary

Constants inherited from FitDataRecord

FitDataRecord::RecordOrder

Constants included from BDFieldNameTranslator

BDFieldNameTranslator::BD_DICT

Constants included from Converters

Converters::FACTORS, Converters::OFFSETS

Instance Attribute Summary

Attributes inherited from FitDataRecord

#message, #timestamp

Instance Method Summary collapse

Methods inherited from FitDataRecord

#<=>, #==, #export, #get, #get_as, #get_unit_by_name, #set, #set_field_values, #write

Methods included from BDFieldNameTranslator

#to_bd_field_name

Methods included from Converters

#conversion_factor, #conversion_offset, #fit_time_to_time, #secsToDHMS, #secsToHM, #secsToHMS, #speedToPace, #time_to_fit_time

Constructor Details

#initialize(field_values = {}) ⇒ UserProfile

Create a new UserProfile object.

Parameters:

  • field_values (Hash) (defaults to: {})

    Hash that provides initial values for certain fields.



23
24
25
26
# File 'lib/fit4ruby/UserProfile.rb', line 23

def initialize(field_values = {})
  super('user_profile')
  set_field_values(field_values)
end