Exception: Renderful::Error::NoComponentError

Inherits:
Base
  • Object
show all
Defined in:
lib/renderful/error/no_component_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry, *args) ⇒ NoComponentError

Returns a new instance of NoComponentError.



8
9
10
11
12
# File 'lib/renderful/error/no_component_error.rb', line 8

def initialize(entry, *args)
  @entry = entry

  super "Cannot find component for content type #{entry.content_type}", *args
end

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry.



6
7
8
# File 'lib/renderful/error/no_component_error.rb', line 6

def entry
  @entry
end