Class: HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary
- Defined in:
- lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#absolute_heartrate ⇒ Object
returns: a String.
-
#absolute_heartrate=(value) ⇒ Object
remarks: The zone boundary is expressed as an absolute heart rate in beats per minute (BPM).
-
#initialize ⇒ ZoneBoundary
constructor
A new instance of ZoneBoundary.
-
#percent_max_heartrate ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Percentage.
-
#percent_max_heartrate=(value) ⇒ Object
remarks: The zone boundary is expressed as a percentage of the person’s maximum heart rate.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ ZoneBoundary
Returns a new instance of ZoneBoundary.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb', line 48 def initialize super self.tag_name = 'zoneboundary' @children['absolute-heartrate'] = {:name => 'absolute-heartrate', :class => String, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 170526508 } @children['percent-max-heartrate'] = {:name => 'percent-max-heartrate', :class => HealthVault::WCData::Thing::Types::Percentage, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 170526508 } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#absolute_heartrate ⇒ Object
returns: a String
27 28 29 |
# File 'lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb', line 27 def absolute_heartrate return @children['absolute-heartrate'][:value] end |
#absolute_heartrate=(value) ⇒ Object
remarks: The zone boundary is expressed as an absolute heart rate in beats per minute (BPM). value is a String
22 23 24 |
# File 'lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb', line 22 def absolute_heartrate=(value) @children['absolute-heartrate'][:value] = value end |
#percent_max_heartrate ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Percentage
42 43 44 |
# File 'lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb', line 42 def percent_max_heartrate return @children['percent-max-heartrate'][:value] end |
#percent_max_heartrate=(value) ⇒ Object
remarks: The zone boundary is expressed as a percentage of the person’s maximum heart rate. value is a HealthVault::WCData::Thing::Types::Percentage
37 38 39 |
# File 'lib/wc_data/generated/thing/aerobic_profile/zone_boundary.rb', line 37 def percent_max_heartrate=(value) @children['percent-max-heartrate'][:value] = value end |