Exception: Nestful::MethodNotAllowed

Inherits:
ClientError show all
Defined in:
lib/nestful/exceptions.rb

Overview

405 Method Not Allowed

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Attributes inherited from Error

#request

Instance Method Summary collapse

Methods inherited from ResponseError

#initialize, #to_s

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Nestful::ResponseError

Instance Method Details

#allowed_methodsObject

:nodoc:



91
92
93
# File 'lib/nestful/exceptions.rb', line 91

def allowed_methods
  @response['Allow'].split(',').map { |verb| verb.strip.downcase.to_sym }
end