Class: Pictify::RenderErrorEntry
- Inherits:
-
Object
- Object
- Pictify::RenderErrorEntry
- Defined in:
- lib/pictify/types.rb
Overview
Error entry returned when a specific layout fails to render.
Maps { layout, error }.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#layout ⇒ Object
readonly
Returns the value of attribute layout.
Instance Method Summary collapse
-
#initialize(data) ⇒ RenderErrorEntry
constructor
A new instance of RenderErrorEntry.
Constructor Details
#initialize(data) ⇒ RenderErrorEntry
Returns a new instance of RenderErrorEntry.
54 55 56 57 |
# File 'lib/pictify/types.rb', line 54 def initialize(data) @layout = data["layout"] @error = data["error"] end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
52 53 54 |
# File 'lib/pictify/types.rb', line 52 def error @error end |
#layout ⇒ Object (readonly)
Returns the value of attribute layout.
52 53 54 |
# File 'lib/pictify/types.rb', line 52 def layout @layout end |