Class: Zm::Client::Message::Body
- Inherits:
-
Object
- Object
- Zm::Client::Message::Body
- Defined in:
- lib/zm/client/message/message.rb
Overview
content fo an email
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html.
169 170 171 |
# File 'lib/zm/client/message/message.rb', line 169 def html @html end |
#text ⇒ Object
Returns the value of attribute text.
169 170 171 |
# File 'lib/zm/client/message/message.rb', line 169 def text @text end |
Instance Method Details
#html_jsns ⇒ Object
175 176 177 |
# File 'lib/zm/client/message/message.rb', line 175 def html_jsns @html.nil? ? nil : { ct: 'text/html', content: { _content: @html } } end |
#text_jsns ⇒ Object
171 172 173 |
# File 'lib/zm/client/message/message.rb', line 171 def text_jsns @text.nil? ? nil : { ct: 'text/plain', content: { _content: @text } } end |
#to_jsns ⇒ Object
179 180 181 182 183 184 185 186 |
# File 'lib/zm/client/message/message.rb', line 179 def to_jsns [ { ct: 'multipart/alternative', mp: [text_jsns, html_jsns].compact } ] end |