Class: HealthVault::WCData::Methods::Response::GetThingType::Info

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



38
39
40
41
42
43
44
45
46
# File 'lib/wc_data/generated/methods/response/get_thing_type/info.rb', line 38

def initialize
  super
  self.tag_name = 'info'

  
  @children['thing-type'] = {:name => 'thing-type', :class => HealthVault::WCData::Methods::Response::GetThingType::ThingTypeInfo, :value => Array.new, :min => 0, :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_thing_type(value) ⇒ Object

value is a HealthVault::WCData::Methods::Response::GetThingType::ThingTypeInfo



20
21
22
# File 'lib/wc_data/generated/methods/response/get_thing_type/info.rb', line 20

def add_thing_type(value)
  @children['thing-type'][:value] << value
end

#remove_thing_type(value) ⇒ Object

value is a #HealthVault::WCData::Methods::Response::GetThingType::ThingTypeInfo



25
26
27
# File 'lib/wc_data/generated/methods/response/get_thing_type/info.rb', line 25

def remove_thing_type(value)
    @children['thing-type'][:value].delete(value)
end

#thing_typeObject

returns: a HealthVault::WCData::Methods::Response::GetThingType::ThingTypeInfo Array



32
33
34
# File 'lib/wc_data/generated/methods/response/get_thing_type/info.rb', line 32

def thing_type
  return @children['thing-type'][:value]
end