Class: HealthVault::WCData::Methods::Response::GetServiceDefinition::XmlMethod

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

#initializeXmlMethod

Returns a new instance of XmlMethod.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb', line 53

def initialize
  super
  self.tag_name = 'xmlmethod'

  
  @children['name'] = {:name => 'name', :class => String, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
    
  @children['name'][:value] = String.new
    
  

  
  @children['version'] = {:name => 'version', :class => HealthVault::WCData::Methods::Response::GetServiceDefinition::XmlMethodVersion, :value => Array.new, :min => 0, :max => 999999, :order => 2, :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_version(value) ⇒ Object

value is a HealthVault::WCData::Methods::Response::GetServiceDefinition::XmlMethodVersion



35
36
37
# File 'lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb', line 35

def add_version(value)
  @children['version'][:value] << value
end

#nameObject

returns: a String



28
29
30
# File 'lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb', line 28

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

#name=(value) ⇒ Object

remarks: The name is used in the XML request to define the method the request is calling. value is a String



23
24
25
# File 'lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb', line 23

def name=(value)
  @children['name'][:value] = value
end

#remove_version(value) ⇒ Object

value is a #HealthVault::WCData::Methods::Response::GetServiceDefinition::XmlMethodVersion



40
41
42
# File 'lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb', line 40

def remove_version(value)
    @children['version'][:value].delete(value)
end

#versionObject

returns: a HealthVault::WCData::Methods::Response::GetServiceDefinition::XmlMethodVersion Array



47
48
49
# File 'lib/wc_data/generated/methods/response/get_service_definition/xml_method.rb', line 47

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