Class: HealthVault::WCData::Types::Groups

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/types/groups.rb

Instance Attribute Summary

Attributes inherited from ComplexType

#tag_name

Instance Method Summary collapse

Methods inherited from ComplexType

#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?

Constructor Details

#initializeGroups

Returns a new instance of Groups.



37
38
39
40
41
42
43
44
45
# File 'lib/wc_data/generated/types/groups.rb', line 37

def initialize
  super
  self.tag_name = 'groups'

  
  @children['group'] = {:name => 'group', :class => HealthVault::WCData::Types::Group, :value => Array.new, :min => 1, :max => 999999, :order => 1, :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_group(value) ⇒ Object

value is a HealthVault::WCData::Types::Group



18
19
20
# File 'lib/wc_data/generated/types/groups.rb', line 18

def add_group(value)
  @children['group'][:value] << value
end

#groupObject

remarks: Groups are used for security purposes. They make it easier to grant access rights to a Microsoft Health Service method, authorize people to a record, or grant access rights to particular data in a health record. They are not meant to be used as distribution lists for email or other forms of communication. returns: a HealthVault::WCData::Types::Group Array



31
32
33
# File 'lib/wc_data/generated/types/groups.rb', line 31

def group
  return @children['group'][:value]
end

#remove_group(value) ⇒ Object

value is a #HealthVault::WCData::Types::Group



23
24
25
# File 'lib/wc_data/generated/types/groups.rb', line 23

def remove_group(value)
    @children['group'][:value].delete(value)
end