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.



54
55
56
57
# File 'lib/pictify/types.rb', line 54

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



52
53
54
# File 'lib/pictify/types.rb', line 52

def error
  @error
end

#layoutObject (readonly)

Returns the value of attribute layout.



52
53
54
# File 'lib/pictify/types.rb', line 52

def layout
  @layout
end