Exception: Tupplur::Error::RESTOperationNotAllowed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tupplur/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(operation = 'unspecified') ⇒ RESTOperationNotAllowed

Returns a new instance of RESTOperationNotAllowed.



10
11
12
# File 'lib/tupplur/errors.rb', line 10

def initialize(operation = 'unspecified')
  @operation = operation
end

Instance Method Details

#messageObject



6
7
8
# File 'lib/tupplur/errors.rb', line 6

def message
  "The #{@operation} REST operation is not allowed."
end