Class: HealthVault::WCData::Thing::Weightgoal::Weightgoal
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Weightgoal::Weightgoal
- Defined in:
- lib/wc_data/generated/thing/weight_goal/weight_goal.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#goal_info ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Goal.
-
#goal_info=(value) ⇒ Object
remarks: A goal contains information like the starting date, completion date, and current status.
-
#initial ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Weightvalue.
-
#initial=(value) ⇒ Object
remarks: If not present, the initial weight can be inferred from the “weight” thing with the closest match to effective-date.
-
#initialize ⇒ Weightgoal
constructor
A new instance of Weightgoal.
-
#maximum ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Weightvalue.
-
#maximum=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Weightvalue.
-
#minimum ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Weightvalue.
-
#minimum=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Weightvalue.
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 ⇒ Weightgoal
Returns a new instance of Weightgoal.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 76 def initialize super self.tag_name = 'weight-goal' @children['initial'] = {:name => 'initial', :class => HealthVault::WCData::Thing::Types::Weightvalue, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['minimum'] = {:name => 'minimum', :class => HealthVault::WCData::Thing::Types::Weightvalue, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['maximum'] = {:name => 'maximum', :class => HealthVault::WCData::Thing::Types::Weightvalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['goal-info'] = {:name => 'goal-info', :class => HealthVault::WCData::Thing::Types::Goal, :value => nil, :min => 0, :max => 1, :order => 4, :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
#goal_info ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Goal
70 71 72 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 70 def goal_info return @children['goal-info'][:value] end |
#goal_info=(value) ⇒ Object
remarks: A goal contains information like the starting date, completion date, and current status. value is a HealthVault::WCData::Thing::Types::Goal
65 66 67 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 65 def goal_info=(value) @children['goal-info'][:value] = value end |
#initial ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Weightvalue
27 28 29 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 27 def initial return @children['initial'][:value] end |
#initial=(value) ⇒ Object
remarks: If not present, the initial weight can be inferred from the “weight” thing with the closest match to effective-date. value is a HealthVault::WCData::Thing::Types::Weightvalue
22 23 24 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 22 def initial=(value) @children['initial'][:value] = value end |
#maximum ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Weightvalue
55 56 57 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 55 def maximum return @children['maximum'][:value] end |
#maximum=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Weightvalue
50 51 52 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 50 def maximum=(value) @children['maximum'][:value] = value end |
#minimum ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Weightvalue
41 42 43 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 41 def minimum return @children['minimum'][:value] end |
#minimum=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Weightvalue
36 37 38 |
# File 'lib/wc_data/generated/thing/weight_goal/weight_goal.rb', line 36 def minimum=(value) @children['minimum'][:value] = value end |