Exception: Xeroizer::MethodNotAllowed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xeroizer/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, method) ⇒ MethodNotAllowed

Returns a new instance of MethodNotAllowed.



64
65
66
67
# File 'lib/xeroizer/exceptions.rb', line 64

def initialize(klass, method)
  @klass = klass
  @method = method
end

Instance Method Details

#messageObject



69
70
71
# File 'lib/xeroizer/exceptions.rb', line 69

def message
  "Method #{@method} not allowed on #{@klass}"
end