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