Class: HealthVault::WCData::Request::Info

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/request/info.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

#initializeInfo

Returns a new instance of Info.



35
36
37
38
39
40
41
42
43
# File 'lib/wc_data/generated/request/info.rb', line 35

def initialize
  super
  self.tag_name = 'info'

  
  @children['anything'] = {:name => 'anything', :class => HealthVault::WCData::ComplexType, :value => Array.new, :min => 0, :max => 999999, :order => 1, :place => :extension, :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_anything(value) ⇒ Object

value is a HealthVault::WCData::ComplexType



18
19
20
# File 'lib/wc_data/generated/request/info.rb', line 18

def add_anything(value)
  @children['anything'][:value] << value
end

#anythingObject

returns: a HealthVault::WCData::ComplexType Array



29
30
31
# File 'lib/wc_data/generated/request/info.rb', line 29

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

#remove_anything(value) ⇒ Object

value is a #HealthVault::WCData::ComplexType



23
24
25
# File 'lib/wc_data/generated/request/info.rb', line 23

def remove_anything(value)
    @children['anything'][:value].delete(value)
end