Class: HealthVault::WCData::Types::Phone

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

#initializePhone

Returns a new instance of Phone.



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/wc_data/generated/types/phone.rb', line 56

def initialize
  super
  self.tag_name = 'phone'

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

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

  
  @children['number'] = {:name => 'number', :class => String, :value => nil, :min => 1, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  @children['number'][: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

#descriptionObject

returns: a String



24
25
26
# File 'lib/wc_data/generated/types/phone.rb', line 24

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

#description=(value) ⇒ Object

value is a String



19
20
21
# File 'lib/wc_data/generated/types/phone.rb', line 19

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

#is_primaryObject

returns: a String



37
38
39
# File 'lib/wc_data/generated/types/phone.rb', line 37

def is_primary
  return @children['is-primary'][:value]
end

#is_primary=(value) ⇒ Object

value is a String



32
33
34
# File 'lib/wc_data/generated/types/phone.rb', line 32

def is_primary=(value)
  @children['is-primary'][:value] = value
end

#numberObject

returns: a String



50
51
52
# File 'lib/wc_data/generated/types/phone.rb', line 50

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

#number=(value) ⇒ Object

REQUIRED value is a String



45
46
47
# File 'lib/wc_data/generated/types/phone.rb', line 45

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