Class: HealthVault::WCData::Methods::Response::PutThings::Info

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/methods/response/put_things/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/put_things/info.rb', line 38

def initialize
  super
  self.tag_name = 'info'

  
  @children['thing-id'] = {:name => 'thing-id', :class => HealthVault::WCData::Thing::ThingKey, :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_thing_id(value) ⇒ Object

value is a HealthVault::WCData::Thing::ThingKey



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

def add_thing_id(value)
  @children['thing-id'][:value] << value
end

#remove_thing_id(value) ⇒ Object

value is a #HealthVault::WCData::Thing::ThingKey



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

def remove_thing_id(value)
    @children['thing-id'][:value].delete(value)
end

#thing_idObject

returns: a HealthVault::WCData::Thing::ThingKey Array



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

def thing_id
  return @children['thing-id'][:value]
end