Class: Mailosaur::Models::MessageForwardOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

Constructor Details

#initialize(data = {}) ⇒ MessageForwardOptions

Returns a new instance of MessageForwardOptions.



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

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

Instance Attribute Details

#htmlString

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

Returns:

  • (String)

    Any additional HTML content to forward the email



20
21
22
# File 'lib/Mailosaur/models/message_forward_options.rb', line 20

def html
  @html
end

#textString

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

Returns:

  • (String)

    Any additional plain text content to forward the



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

def text
  @text
end

#toString

Must be a verified email address.

Returns:

  • (String)

    The email address to which the email will be sent.



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

def to
  @to
end