Class: Pictify::RenderErrorEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/pictify/types.rb

Overview

Error entry returned when a specific layout fails to render.

Maps { layout, error }.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ RenderErrorEntry

Returns a new instance of RenderErrorEntry.



60
61
62
63
# File 'lib/pictify/types.rb', line 60

def initialize(data)
  @layout = data["layout"]
  @error = data["error"]
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



58
59
60
# File 'lib/pictify/types.rb', line 58

def error
  @error
end

#layoutObject (readonly)

Returns the value of attribute layout.



58
59
60
# File 'lib/pictify/types.rb', line 58

def layout
  @layout
end