Exception: Graphiti::Errors::AroundCallbackProc

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource_class, method_name) ⇒ AroundCallbackProc

Returns a new instance of AroundCallbackProc.



50
51
52
53
# File 'lib/graphiti/errors.rb', line 50

def initialize(resource_class, method_name)
  @resource_class = resource_class
  @method_name = method_name
end

Instance Method Details

#messageObject



55
56
57
58
59
# File 'lib/graphiti/errors.rb', line 55

def message
  <<-MSG
    #{@resource_class}: Tried to pass block to .#{@method_name}, which only accepts a method name.
  MSG
end