Class: Spree::Emails::RenderedEmail
- Inherits:
-
Object
- Object
- Spree::Emails::RenderedEmail
- Defined in:
- app/services/spree/emails/rendered_email.rb
Overview
The finished parts of one email, ready for Action Mailer.
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(subject:, html:, text:) ⇒ RenderedEmail
constructor
A new instance of RenderedEmail.
Constructor Details
#initialize(subject:, html:, text:) ⇒ RenderedEmail
Returns a new instance of RenderedEmail.
7 8 9 10 11 |
# File 'app/services/spree/emails/rendered_email.rb', line 7 def initialize(subject:, html:, text:) @subject = subject @html = html @text = text end |
Instance Attribute Details
#html ⇒ Object (readonly)
Returns the value of attribute html.
5 6 7 |
# File 'app/services/spree/emails/rendered_email.rb', line 5 def html @html end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
5 6 7 |
# File 'app/services/spree/emails/rendered_email.rb', line 5 def subject @subject end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'app/services/spree/emails/rendered_email.rb', line 5 def text @text end |