Class: HealthVault::WCData::Thing::Aerobicprofile::Aerobicprofile

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb

Instance Attribute Summary

Attributes inherited from ComplexType

#tag_name

Instance Method Summary collapse

Methods inherited from ComplexType

#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?

Constructor Details

#initializeAerobicprofile

Returns a new instance of Aerobicprofile.



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 112

def initialize
  super
  self.tag_name = 'aerobic-profile'

  
  @children['when'] = {:name => 'when', :class => HealthVault::WCData::Dates::Datetime, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
    
  @children['when'][:value] = HealthVault::WCData::Dates::Datetime.new
    
  

  
  @children['max-heartrate'] = {:name => 'max-heartrate', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

  
  @children['resting-heartrate'] = {:name => 'resting-heartrate', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

  
  @children['anaerobic-threshold'] = {:name => 'anaerobic-threshold', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

  
  @children['VO2-max'] = {:name => 'VO2-max', :class => HealthVault::WCData::Thing::Aerobicprofile::MaxVO2, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 }
    
  

  
  @children['heartrate-zone-group'] = {:name => 'heartrate-zone-group', :class => HealthVault::WCData::Thing::Aerobicprofile::HeartrateZoneGroup, :value => Array.new, :min => 0, :max => 999999, :order => 6, :place => :element, :choice => 0 }
  

end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType

Instance Method Details

#add_heartrate_zone_group(value) ⇒ Object

value is a HealthVault::WCData::Thing::Aerobicprofile::HeartrateZoneGroup



93
94
95
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 93

def add_heartrate_zone_group(value)
  @children['heartrate-zone-group'][:value] << value
end

#anaerobic_thresholdObject

returns: a String



71
72
73
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 71

def anaerobic_threshold
  return @children['anaerobic-threshold'][:value]
end

#anaerobic_threshold=(value) ⇒ Object

remarks: The anaerobic threshold is measured in beats per minute (BPM). value is a String



66
67
68
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 66

def anaerobic_threshold=(value)
  @children['anaerobic-threshold'][:value] = value
end

#heartrate_zone_groupObject

remarks: This allows for customized groupings of heart rate zones based on different values.Heart rate zones are often used to optimize exercise for different purposes. By grouping heart rate zones into named groups it is easier to identify the zones to use for a particular workout. returns: a HealthVault::WCData::Thing::Aerobicprofile::HeartrateZoneGroup Array



106
107
108
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 106

def heartrate_zone_group
  return @children['heartrate-zone-group'][:value]
end

#max_heartrateObject

returns: a String



41
42
43
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 41

def max_heartrate
  return @children['max-heartrate'][:value]
end

#max_heartrate=(value) ⇒ Object

remarks: The maximum heart rate is measured in beats per minute (BPM). value is a String



36
37
38
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 36

def max_heartrate=(value)
  @children['max-heartrate'][:value] = value
end

#remove_heartrate_zone_group(value) ⇒ Object

value is a #HealthVault::WCData::Thing::Aerobicprofile::HeartrateZoneGroup



98
99
100
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 98

def remove_heartrate_zone_group(value)
    @children['heartrate-zone-group'][:value].delete(value)
end

#resting_heartrateObject

returns: a String



56
57
58
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 56

def resting_heartrate
  return @children['resting-heartrate'][:value]
end

#resting_heartrate=(value) ⇒ Object

remarks: The resting heart rate is measured in beats per minute (BPM). value is a String



51
52
53
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 51

def resting_heartrate=(value)
  @children['resting-heartrate'][:value] = value
end

#vo2_maxObject

returns: a HealthVault::WCData::Thing::Aerobicprofile::MaxVO2



86
87
88
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 86

def vo2_max
  return @children['VO2-max'][:value]
end

#vo2_max=(value) ⇒ Object

remarks: VO2 max can be measured as either and absolute rate in liters of oxygen per minute, or as a relative rate in milliters of oxygen per kilogram of bodyweight per minute. value is a HealthVault::WCData::Thing::Aerobicprofile::MaxVO2



81
82
83
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 81

def vo2_max=(value)
  @children['VO2-max'][:value] = value
end

#whenObject

returns: a HealthVault::WCData::Dates::Datetime



26
27
28
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 26

def when
  return @children['when'][:value]
end

#when=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Datetime



21
22
23
# File 'lib/wc_data/generated/thing/aerobic_profile/aerobic_profile.rb', line 21

def when=(value)
  @children['when'][:value] = value
end