Class: HealthVault::WCData::Methods::SendInsecureMessage::Info

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



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 115

def initialize
  super
  self.tag_name = 'info'

  
  @children['rcpt-address'] = {:name => 'rcpt-address', :class => HealthVault::WCData::Types::RcptAddress, :value => Array.new, :min => 0, :max => 999999, :order => 1, :place => :element, :choice => 0 }
  

  
  @children['rcpt-person'] = {:name => 'rcpt-person', :class => HealthVault::WCData::Types::RcptPerson, :value => Array.new, :min => 0, :max => 999999, :order => 2, :place => :element, :choice => 0 }
  

  
  @children['rcpt-record'] = {:name => 'rcpt-record', :class => HealthVault::WCData::Types::RcptRecord, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

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

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

  
  @children['html-body'] = {:name => 'html-body', :class => String, :value => nil, :min => 0, :max => 1, :order => 6, :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_rcpt_address(value) ⇒ Object

value is a HealthVault::WCData::Types::RcptAddress



19
20
21
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 19

def add_rcpt_address(value)
  @children['rcpt-address'][:value] << value
end

#add_rcpt_person(value) ⇒ Object

value is a HealthVault::WCData::Types::RcptPerson



38
39
40
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 38

def add_rcpt_person(value)
  @children['rcpt-person'][:value] << value
end

#html_bodyObject

returns: a String



109
110
111
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 109

def html_body
  return @children['html-body'][:value]
end

#html_body=(value) ⇒ Object

remarks: The message can consist of two parts. One part of the message can consist of richly formatted text using HTML and the other must be plain text to support email programs that don’t support the rich views or those where rich viewing has been disabled. value is a String



104
105
106
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 104

def html_body=(value)
  @children['html-body'][:value] = value
end

#rcpt_addressObject

returns: a HealthVault::WCData::Types::RcptAddress Array



31
32
33
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 31

def rcpt_address
  return @children['rcpt-address'][:value]
end

#rcpt_personObject

returns: a HealthVault::WCData::Types::RcptPerson Array



50
51
52
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 50

def rcpt_person
  return @children['rcpt-person'][:value]
end

#rcpt_recordObject

returns: a HealthVault::WCData::Types::RcptRecord



64
65
66
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 64

def rcpt_record
  return @children['rcpt-record'][:value]
end

#rcpt_record=(value) ⇒ Object

value is a HealthVault::WCData::Types::RcptRecord



59
60
61
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 59

def rcpt_record=(value)
  @children['rcpt-record'][:value] = value
end

#remove_rcpt_address(value) ⇒ Object

value is a #HealthVault::WCData::Types::RcptAddress



24
25
26
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 24

def remove_rcpt_address(value)
    @children['rcpt-address'][:value].delete(value)
end

#remove_rcpt_person(value) ⇒ Object

value is a #HealthVault::WCData::Types::RcptPerson



43
44
45
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 43

def remove_rcpt_person(value)
    @children['rcpt-person'][:value].delete(value)
end

#subjectObject

returns: a String



79
80
81
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 79

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

#subject=(value) ⇒ Object

remarks: This will show up in the subject field of the email message. value is a String



74
75
76
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 74

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

#text_bodyObject

returns: a String



94
95
96
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 94

def text_body
  return @children['text-body'][:value]
end

#text_body=(value) ⇒ Object

remarks: The message can consist of two parts. One part of the message can consist of richly formatted text using HTML and the other must be plain text to support email programs that don’t support the rich views or those where rich viewing has been disabled. value is a String



89
90
91
# File 'lib/wc_data/generated/methods/send_insecure_message/info.rb', line 89

def text_body=(value)
  @children['text-body'][:value] = value
end