Class: HealthVault::WCData::Types::RcptAddress

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

#initializeRcptAddress

Returns a new instance of RcptAddress.



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/wc_data/generated/types/rcpt_address.rb', line 46

def initialize
  super
  self.tag_name = 'rcptaddress'

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

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

end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType

Instance Method Details

#addressObject

returns: a String



26
27
28
# File 'lib/wc_data/generated/types/rcpt_address.rb', line 26

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

#address=(value) ⇒ Object

remarks: The email address must conform to standard email address rules. value is a String



21
22
23
# File 'lib/wc_data/generated/types/rcpt_address.rb', line 21

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

#nameObject

returns: a String



40
41
42
# File 'lib/wc_data/generated/types/rcpt_address.rb', line 40

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

#name=(value) ⇒ Object

value is a String



35
36
37
# File 'lib/wc_data/generated/types/rcpt_address.rb', line 35

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