Class: HealthVault::WCData::Types::Group
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Types::Group
- Defined in:
- lib/wc_data/generated/types/group.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#contact_email ⇒ Object
returns: a HealthVault::WCData::Types::EmailAddress.
-
#contact_email=(value) ⇒ Object
remarks: The email address for the group should refer to a person or set of people that can manage the group membership.
-
#id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#id=(value) ⇒ Object
remarks: Each group in the Microsoft Health Service is assigned a unique identifier which is a 128-bit integer (16 bytes) and is used to identify the group when calling methods on the service.
-
#initialize ⇒ Group
constructor
A new instance of Group.
-
#name ⇒ Object
returns: a HealthVault::WCData::Types::String255.
-
#name=(value) ⇒ Object
value is a HealthVault::WCData::Types::String255.
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 ⇒ Group
Returns a new instance of Group.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/wc_data/generated/types/group.rb', line 61 def initialize super self.tag_name = 'group' @children['name'] = {:name => 'name', :class => HealthVault::WCData::Types::String255, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['name'][:value] = HealthVault::WCData::Types::String255.new @children['id'] = {:name => 'id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['id'][:value] = HealthVault::WCData::Types::Guid.new @children['contact-email'] = {:name => 'contact-email', :class => HealthVault::WCData::Types::EmailAddress, :value => nil, :min => 1, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['contact-email'][:value] = HealthVault::WCData::Types::EmailAddress.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#contact_email ⇒ Object
returns: a HealthVault::WCData::Types::EmailAddress
55 56 57 |
# File 'lib/wc_data/generated/types/group.rb', line 55 def contact_email return @children['contact-email'][:value] end |
#contact_email=(value) ⇒ Object
remarks: The email address for the group should refer to a person or set of people that can manage the group membership. It should not be used to define a mailing list for the entire group. value is a HealthVault::WCData::Types::EmailAddress
50 51 52 |
# File 'lib/wc_data/generated/types/group.rb', line 50 def contact_email=(value) @children['contact-email'][:value] = value end |
#id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
40 41 42 |
# File 'lib/wc_data/generated/types/group.rb', line 40 def id return @children['id'][:value] end |
#id=(value) ⇒ Object
remarks: Each group in the Microsoft Health Service is assigned a unique identifier which is a 128-bit integer (16 bytes) and is used to identify the group when calling methods on the service. value is a HealthVault::WCData::Types::Guid
35 36 37 |
# File 'lib/wc_data/generated/types/group.rb', line 35 def id=(value) @children['id'][:value] = value end |
#name ⇒ Object
returns: a HealthVault::WCData::Types::String255
25 26 27 |
# File 'lib/wc_data/generated/types/group.rb', line 25 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
value is a HealthVault::WCData::Types::String255
20 21 22 |
# File 'lib/wc_data/generated/types/group.rb', line 20 def name=(value) @children['name'][:value] = value end |