Class: HealthVault::WCData::Thing::Basic::Basic
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Basic::Basic
- Defined in:
- lib/wc_data/generated/thing/basic/basic.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_language(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Language.
-
#birthyear ⇒ Object
returns: a String.
-
#birthyear=(value) ⇒ Object
value is a String.
-
#city ⇒ Object
returns: a String.
-
#city=(value) ⇒ Object
value is a String.
-
#country ⇒ Object
returns: a String.
-
#country=(value) ⇒ Object
value is a String.
-
#firstdow ⇒ Object
returns: a String.
-
#firstdow=(value) ⇒ Object
value is a String.
-
#gender ⇒ Object
returns: a String.
-
#gender=(value) ⇒ Object
value is a String.
-
#initialize ⇒ Basic
constructor
A new instance of Basic.
-
#language ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Language Array.
-
#postcode ⇒ Object
returns: a String.
-
#postcode=(value) ⇒ Object
value is a String.
-
#remove_language(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Types::Language.
-
#state ⇒ Object
returns: a String.
-
#state=(value) ⇒ Object
value is a String.
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 ⇒ Basic
Returns a new instance of Basic.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 131 def initialize super self.tag_name = 'basic' @children['gender'] = {:name => 'gender', :class => String, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['birthyear'] = {:name => 'birthyear', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['country'] = {:name => 'country', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['postcode'] = {:name => 'postcode', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['city'] = {:name => 'city', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['state'] = {:name => 'state', :class => String, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 } @children['firstdow'] = {:name => 'firstdow', :class => String, :value => nil, :min => 0, :max => 1, :order => 7, :place => :element, :choice => 0 } @children['language'] = {:name => 'language', :class => HealthVault::WCData::Thing::Types::Language, :value => Array.new, :min => 0, :max => 999999, :order => 8, :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
#add_language(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Language
113 114 115 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 113 def add_language(value) @children['language'][:value] << value end |
#birthyear ⇒ Object
returns: a String
38 39 40 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 38 def birthyear return @children['birthyear'][:value] end |
#birthyear=(value) ⇒ Object
value is a String
33 34 35 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 33 def birthyear=(value) @children['birthyear'][:value] = value end |
#city ⇒ Object
returns: a String
79 80 81 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 79 def city return @children['city'][:value] end |
#city=(value) ⇒ Object
value is a String
74 75 76 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 74 def city=(value) @children['city'][:value] = value end |
#country ⇒ Object
returns: a String
51 52 53 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 51 def country return @children['country'][:value] end |
#country=(value) ⇒ Object
value is a String
46 47 48 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 46 def country=(value) @children['country'][:value] = value end |
#firstdow ⇒ Object
returns: a String
106 107 108 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 106 def firstdow return @children['firstdow'][:value] end |
#firstdow=(value) ⇒ Object
value is a String
101 102 103 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 101 def firstdow=(value) @children['firstdow'][:value] = value end |
#gender ⇒ Object
returns: a String
25 26 27 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 25 def gender return @children['gender'][:value] end |
#gender=(value) ⇒ Object
value is a String
20 21 22 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 20 def gender=(value) @children['gender'][:value] = value end |
#language ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Language Array
125 126 127 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 125 def language return @children['language'][:value] end |
#postcode ⇒ Object
returns: a String
65 66 67 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 65 def postcode return @children['postcode'][:value] end |
#postcode=(value) ⇒ Object
value is a String
60 61 62 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 60 def postcode=(value) @children['postcode'][:value] = value end |
#remove_language(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Types::Language
118 119 120 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 118 def remove_language(value) @children['language'][:value].delete(value) end |
#state ⇒ Object
returns: a String
93 94 95 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 93 def state return @children['state'][:value] end |
#state=(value) ⇒ Object
value is a String
88 89 90 |
# File 'lib/wc_data/generated/thing/basic/basic.rb', line 88 def state=(value) @children['state'][:value] = value end |