Class: Mailosaur::Models::MessageReplyOptions

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/Mailosaur/models/message_reply_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

Constructor Details

#initialize(data = {}) ⇒ MessageReplyOptions



4
5
6
7
8
# File 'lib/Mailosaur/models/message_reply_options.rb', line 4

def initialize(data = {})
  @text = data['text']
  @html = data['html']
  @attachments = data['attachments']
end

Instance Attribute Details

#attachmentsArray<Attachment>



19
20
21
# File 'lib/Mailosaur/models/message_reply_options.rb', line 19

def attachments
  @attachments
end

#htmlString

reply. Note that only html or text can be supplied, not both.



16
17
18
# File 'lib/Mailosaur/models/message_reply_options.rb', line 16

def html
  @html
end

#textString

the reply. Note that only text or html can be supplied, not both.



12
13
14
# File 'lib/Mailosaur/models/message_reply_options.rb', line 12

def text
  @text
end