Class: HealthVault::WCData::Thing::Allergicepisode::Allergicepisode
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Allergicepisode::Allergicepisode
- Defined in:
- lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#initialize ⇒ Allergicepisode
constructor
A new instance of Allergicepisode.
-
#name ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#name=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#reaction ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#reaction=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#treatment ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#treatment=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime.
-
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Datetime.
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 ⇒ Allergicepisode
Returns a new instance of Allergicepisode.
74 75 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 101 102 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 74 def initialize super self.tag_name = 'allergic-episode' @children['when'] = {:name => 'when', :class => HealthVault::WCData::Dates::Datetime, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['when'][:value] = HealthVault::WCData::Dates::Datetime.new @children['name'] = {:name => 'name', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['name'][:value] = HealthVault::WCData::Thing::Types::Codablevalue.new @children['reaction'] = {:name => 'reaction', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['treatment'] = {:name => 'treatment', :class => HealthVault::WCData::Thing::Types::Codablevalue, :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
#name ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
40 41 42 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 40 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
35 36 37 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 35 def name=(value) @children['name'][:value] = value end |
#reaction ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
54 55 56 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 54 def reaction return @children['reaction'][:value] end |
#reaction=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
49 50 51 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 49 def reaction=(value) @children['reaction'][:value] = value end |
#treatment ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
68 69 70 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 68 def treatment return @children['treatment'][:value] end |
#treatment=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
63 64 65 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 63 def treatment=(value) @children['treatment'][:value] = value end |
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime
26 27 28 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 26 def when return @children['when'][:value] end |
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Datetime
21 22 23 |
# File 'lib/wc_data/generated/thing/allergic_episode/allergic_episode.rb', line 21 def when=(value) @children['when'][:value] = value end |