Class: GrapeTokenAuth::Mail::MessageBase
- Inherits:
-
Object
- Object
- GrapeTokenAuth::Mail::MessageBase
- Defined in:
- lib/grape_token_auth/mail/message_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#html_body ⇒ Object
Returns the value of attribute html_body.
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#text_body ⇒ Object
Returns the value of attribute text_body.
-
#url_options ⇒ Object
writeonly
Sets the attribute url_options.
Instance Method Summary collapse
-
#initialize(opts) ⇒ MessageBase
constructor
A new instance of MessageBase.
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_body ⇒ Object
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 |
#opts ⇒ Object
Returns the value of attribute opts.
5 6 7 |
# File 'lib/grape_token_auth/mail/message_base.rb', line 5 def opts @opts end |
#subject ⇒ Object
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_body ⇒ Object
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
5 6 7 |
# File 'lib/grape_token_auth/mail/message_base.rb', line 5 def (value) @url_options = value end |