Class: HealthVault::WCData::Thing::Diabeticprofile::TargetGlucoseZone
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Diabeticprofile::TargetGlucoseZone
- Defined in:
- lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#initialize ⇒ TargetGlucoseZone
constructor
A new instance of TargetGlucoseZone.
-
#lower_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary.
-
#lower_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary.
-
#name ⇒ Object
returns: a String.
-
#name=(value) ⇒ Object
remarks: The name is usually arbitrary.
-
#upper_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary.
-
#upper_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Diabeticprofile::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 ⇒ TargetGlucoseZone
Returns a new instance of TargetGlucoseZone.
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/diabetic_profile/target_glucose_zone.rb', line 61 def initialize super self.tag_name = 'targetglucosezone' @children['lower-bound'] = {:name => 'lower-bound', :class => HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['lower-bound'][:value] = HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary.new @children['upper-bound'] = {:name => 'upper-bound', :class => HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['upper-bound'][:value] = HealthVault::WCData::Thing::Diabeticprofile::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::Diabeticprofile::ZoneBoundary
26 27 28 |
# File 'lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb', line 26 def lower_bound return @children['lower-bound'][:value] end |
#lower_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary
21 22 23 |
# File 'lib/wc_data/generated/thing/diabetic_profile/target_glucose_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/diabetic_profile/target_glucose_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 relative to means. value is a String
50 51 52 |
# File 'lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb', line 50 def name=(value) @children['name'][:value] = value end |
#upper_bound ⇒ Object
returns: a HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary
40 41 42 |
# File 'lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb', line 40 def upper_bound return @children['upper-bound'][:value] end |
#upper_bound=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Diabeticprofile::ZoneBoundary
35 36 37 |
# File 'lib/wc_data/generated/thing/diabetic_profile/target_glucose_zone.rb', line 35 def upper_bound=(value) @children['upper-bound'][:value] = value end |