Class: HealthVault::WCData::Thing::Aerobicprofile::HeartrateZone
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Aerobicprofile::HeartrateZone
- Defined in:
- lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#initialize ⇒ HeartrateZone
constructor
A new instance of HeartrateZone.
-
#lower_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary.
-
#lower_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary.
-
#name ⇒ Object
returns: a String.
-
#name=(value) ⇒ Object
remarks: The name is usually arbitrary.
-
#upper_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary.
-
#upper_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary.
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 ⇒ HeartrateZone
Returns a new instance of HeartrateZone.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 61 def initialize super self.tag_name = 'heartratezone' @children['lower-bound'] = {:name => 'lower-bound', :class => HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['lower-bound'][:value] = HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary.new @children['upper-bound'] = {:name => 'upper-bound', :class => HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['upper-bound'][:value] = HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary.new @children['name'] = {:name => 'name', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :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
#lower_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary
26 27 28 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 26 def lower_bound return @children['lower-bound'][:value] end |
#lower_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary
21 22 23 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 21 def lower_bound=(value) @children['lower-bound'][:value] = value end |
#name ⇒ Object
returns: a String
55 56 57 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 55 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
remarks: The name is usually arbitrary. It is used by the person to easily identify the zone without having to remember the boundaries. The name is often represented by the intensity or the benefits gained by exercising in that zone. value is a String
50 51 52 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 50 def name=(value) @children['name'][:value] = value end |
#upper_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary
40 41 42 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 40 def upper_bound return @children['upper-bound'][:value] end |
#upper_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Aerobicprofile::ZoneBoundary
35 36 37 |
# File 'lib/wc_data/generated/thing/aerobic_profile/heartrate_zone.rb', line 35 def upper_bound=(value) @children['upper-bound'][:value] = value end |