Class: Spree::Emails::RenderedEmail

Inherits:
Object
  • Object
show all
Defined in:
app/services/spree/emails/rendered_email.rb

Overview

The finished parts of one email, ready for Action Mailer.

Instance Attribute Summary collapse

Instance Method Summary collapse

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