Class: HealthVault::WCData::Thing::Aerobicprofile::MaxVO2
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Aerobicprofile::MaxVO2
- Defined in:
- lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#absolute ⇒ Object
returns: a HealthVault::WCData::Thing::Types::PositiveDouble.
-
#absolute=(value) ⇒ Object
remarks: Absolute VO2 max is measured in liters per minute (l/min).
-
#initialize ⇒ MaxVO2
constructor
A new instance of MaxVO2.
-
#relative ⇒ Object
returns: a HealthVault::WCData::Thing::Types::PositiveDouble.
-
#relative=(value) ⇒ Object
remarks: Relative VO2 max is measured in milliters per kilogram per minute (ml/kg/min).
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 ⇒ MaxVO2
Returns a new instance of MaxVO2.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb', line 48 def initialize super self.tag_name = 'maxvo2' @children['absolute'] = {:name => 'absolute', :class => HealthVault::WCData::Thing::Types::PositiveDouble, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['relative'] = {:name => 'relative', :class => HealthVault::WCData::Thing::Types::PositiveDouble, :value => nil, :min => 0, :max => 1, :order => 2, :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
#absolute ⇒ Object
returns: a HealthVault::WCData::Thing::Types::PositiveDouble
27 28 29 |
# File 'lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb', line 27 def absolute return @children['absolute'][:value] end |
#absolute=(value) ⇒ Object
remarks: Absolute VO2 max is measured in liters per minute (l/min). value is a HealthVault::WCData::Thing::Types::PositiveDouble
22 23 24 |
# File 'lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb', line 22 def absolute=(value) @children['absolute'][:value] = value end |
#relative ⇒ Object
returns: a HealthVault::WCData::Thing::Types::PositiveDouble
42 43 44 |
# File 'lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb', line 42 def relative return @children['relative'][:value] end |
#relative=(value) ⇒ Object
remarks: Relative VO2 max is measured in milliters per kilogram per minute (ml/kg/min). This measurement is the more common measurement used to compare aerobic performance. value is a HealthVault::WCData::Thing::Types::PositiveDouble
37 38 39 |
# File 'lib/wc_data/generated/thing/aerobic_profile/max_vo2.rb', line 37 def relative=(value) @children['relative'][:value] = value end |