Class: HealthVault::WCData::Thing::Types::Altitudevalue
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Types::Altitudevalue
- Defined in:
- lib/wc_data/generated/thing/types/altitude_value.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#display ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Displayvalue.
-
#display=(value) ⇒ Object
remarks: The display value contains the altitude measurement value stored in the user’s preference of units.
-
#initialize ⇒ Altitudevalue
constructor
A new instance of Altitudevalue.
-
#m ⇒ Object
returns: a String.
-
#m=(value) ⇒ Object
remarks: A negative value indicates the measurement was take below sea level.
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 ⇒ Altitudevalue
Returns a new instance of Altitudevalue.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/wc_data/generated/thing/types/altitude_value.rb', line 48 def initialize super self.tag_name = 'altitude-value' @children['m'] = {:name => 'm', :class => String, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['m'][:value] = String.new @children['display'] = {:name => 'display', :class => HealthVault::WCData::Thing::Types::Displayvalue, :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
#display ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Displayvalue
42 43 44 |
# File 'lib/wc_data/generated/thing/types/altitude_value.rb', line 42 def display return @children['display'][:value] end |
#display=(value) ⇒ Object
remarks: The display value contains the altitude measurement value stored in the user’s preference of units. value is a HealthVault::WCData::Thing::Types::Displayvalue
37 38 39 |
# File 'lib/wc_data/generated/thing/types/altitude_value.rb', line 37 def display=(value) @children['display'][:value] = value end |
#m ⇒ Object
returns: a String
27 28 29 |
# File 'lib/wc_data/generated/thing/types/altitude_value.rb', line 27 def m return @children['m'][:value] end |
#m=(value) ⇒ Object
remarks: A negative value indicates the measurement was take below sea level. value is a String
22 23 24 |
# File 'lib/wc_data/generated/thing/types/altitude_value.rb', line 22 def m=(value) @children['m'][:value] = value end |