Class: HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary
- Defined in:
- lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#absolute_glucose ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Bloodglucosevalue.
-
#absolute_glucose=(value) ⇒ Object
remarks: The zone boundary is expressed as an absolute blood glucose value.
-
#initialize ⇒ ZoneBoundary
constructor
A new instance of ZoneBoundary.
-
#percent_max_glucose ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Percentage.
-
#percent_max_glucose=(value) ⇒ Object
remarks: The zone boundary is expressed as a percentage of the person’s maximum blood glucose value.
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/diabetic_profile/zone_boundary.rb', line 48 def initialize super self.tag_name = 'zoneboundary' @children['absolute-glucose'] = {:name => 'absolute-glucose', :class => HealthVault::WCData::Thing::Types::Bloodglucosevalue, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 171428869 } @children['percent-max-glucose'] = {:name => 'percent-max-glucose', :class => HealthVault::WCData::Thing::Types::Percentage, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 171428869 } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#absolute_glucose ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Bloodglucosevalue
27 28 29 |
# File 'lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb', line 27 def absolute_glucose return @children['absolute-glucose'][:value] end |
#absolute_glucose=(value) ⇒ Object
remarks: The zone boundary is expressed as an absolute blood glucose value. value is a HealthVault::WCData::Thing::Types::Bloodglucosevalue
22 23 24 |
# File 'lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb', line 22 def absolute_glucose=(value) @children['absolute-glucose'][:value] = value end |
#percent_max_glucose ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Percentage
42 43 44 |
# File 'lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb', line 42 def percent_max_glucose return @children['percent-max-glucose'][:value] end |
#percent_max_glucose=(value) ⇒ Object
remarks: The zone boundary is expressed as a percentage of the person’s maximum blood glucose value. value is a HealthVault::WCData::Thing::Types::Percentage
37 38 39 |
# File 'lib/wc_data/generated/thing/diabetic_profile/zone_boundary.rb', line 37 def percent_max_glucose=(value) @children['percent-max-glucose'][:value] = value end |