Class: HealthVault::WCData::Thing::Types::Bloodglucosevalue
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Types::Bloodglucosevalue
- Defined in:
- lib/wc_data/generated/thing/types/blood_glucose_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 blood glucose measurement value stored in the user’s preference of units.
-
#initialize ⇒ Bloodglucosevalue
constructor
A new instance of Bloodglucosevalue.
-
#mmol_per_l ⇒ Object
returns: a HealthVault::WCData::Thing::Types::PositiveDouble.
-
#mmol_per_l=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::PositiveDouble.
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 ⇒ Bloodglucosevalue
Returns a new instance of Bloodglucosevalue.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/wc_data/generated/thing/types/blood_glucose_value.rb', line 47 def initialize super self.tag_name = 'blood-glucose-value' @children['mmolPerL'] = {:name => 'mmolPerL', :class => HealthVault::WCData::Thing::Types::PositiveDouble, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['mmolPerL'][:value] = HealthVault::WCData::Thing::Types::PositiveDouble.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
41 42 43 |
# File 'lib/wc_data/generated/thing/types/blood_glucose_value.rb', line 41 def display return @children['display'][:value] end |
#display=(value) ⇒ Object
remarks: The display value contains the blood glucose measurement value stored in the user’s preference of units. value is a HealthVault::WCData::Thing::Types::Displayvalue
36 37 38 |
# File 'lib/wc_data/generated/thing/types/blood_glucose_value.rb', line 36 def display=(value) @children['display'][:value] = value end |
#mmol_per_l ⇒ Object
returns: a HealthVault::WCData::Thing::Types::PositiveDouble
26 27 28 |
# File 'lib/wc_data/generated/thing/types/blood_glucose_value.rb', line 26 def mmol_per_l return @children['mmolPerL'][:value] end |
#mmol_per_l=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::PositiveDouble
21 22 23 |
# File 'lib/wc_data/generated/thing/types/blood_glucose_value.rb', line 21 def mmol_per_l=(value) @children['mmolPerL'][:value] = value end |