Class: ReactEmailRails::RenderedEmail

Inherits:
Data
  • Object
show all
Defined in:
lib/react_email_rails/rendered_email.rb

Overview

‘warnings` are non-fatal (document nodes nothing rendered); empty for component renders.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html:, text:, warnings: []) ⇒ RenderedEmail

Returns a new instance of RenderedEmail.



4
5
6
# File 'lib/react_email_rails/rendered_email.rb', line 4

def initialize(html:, text:, warnings: [])
  super
end

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



3
4
5
# File 'lib/react_email_rails/rendered_email.rb', line 3

def html
  @html
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



3
4
5
# File 'lib/react_email_rails/rendered_email.rb', line 3

def text
  @text
end

#warningsObject (readonly)

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



3
4
5
# File 'lib/react_email_rails/rendered_email.rb', line 3

def warnings
  @warnings
end