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.



75
76
77
78
# File 'lib/graphiti/errors.rb', line 75

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

Instance Method Details

#messageObject



80
81
82
83
84
# File 'lib/graphiti/errors.rb', line 80

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