Class: GrapeTokenAuth::Mail::MessageBase

Inherits:
Object
  • Object
show all
Defined in:
lib/grape_token_auth/mail/message_base.rb

Direct Known Subclasses

ConfirmationEmail, PasswordResetEmail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ MessageBase

Returns a new instance of MessageBase.



7
8
9
10
# File 'lib/grape_token_auth/mail/message_base.rb', line 7

def initialize(opts)
  @opts = opts
  @to_address = opts[:to]
end

Instance Attribute Details

#html_bodyObject

Returns the value of attribute html_body.



5
6
7
# File 'lib/grape_token_auth/mail/message_base.rb', line 5

def html_body
  @html_body
end

#optsObject

Returns the value of attribute opts.



5
6
7
# File 'lib/grape_token_auth/mail/message_base.rb', line 5

def opts
  @opts
end

#subjectObject

Returns the value of attribute subject.



5
6
7
# File 'lib/grape_token_auth/mail/message_base.rb', line 5

def subject
  @subject
end

#text_bodyObject

Returns the value of attribute text_body.



5
6
7
# File 'lib/grape_token_auth/mail/message_base.rb', line 5

def text_body
  @text_body
end

#url_options=(value) ⇒ Object

Sets the attribute url_options

Parameters:

  • value

    the value to set the attribute url_options to.



5
6
7
# File 'lib/grape_token_auth/mail/message_base.rb', line 5

def url_options=(value)
  @url_options = value
end