Class: ReactEmailRails::RenderedEmail
- Inherits:
-
Data
- Object
- Data
- ReactEmailRails::RenderedEmail
- 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
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(html:, text:, warnings: []) ⇒ RenderedEmail
constructor
A new instance of RenderedEmail.
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
#html ⇒ Object (readonly)
Returns the value of attribute html
4 5 6 |
# File 'lib/react_email_rails/rendered_email.rb', line 4 def html @html end |
#text ⇒ Object (readonly)
Returns the value of attribute text
4 5 6 |
# File 'lib/react_email_rails/rendered_email.rb', line 4 def text @text end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings
4 5 6 |
# File 'lib/react_email_rails/rendered_email.rb', line 4 def warnings @warnings end |