Class: ReactEmailRails::RenderedEmail

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

Overview

‘warnings` carries non-fatal renderer warnings (e.g. document nodes dropped because no extension rendered them); 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.



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

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



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

def html
  @html
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



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

def text
  @text
end

#warningsObject (readonly)

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



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

def warnings
  @warnings
end