Exception: Hyperdrive::Errors::MethodNotAllowed
- Defined in:
- lib/hyperdrive/errors/method_not_allowed.rb
Instance Attribute Summary
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize(request_method) ⇒ MethodNotAllowed
constructor
A new instance of MethodNotAllowed.
Constructor Details
#initialize(request_method) ⇒ MethodNotAllowed
Returns a new instance of MethodNotAllowed.
4 5 6 7 8 |
# File 'lib/hyperdrive/errors/method_not_allowed.rb', line 4 def initialize(request_method) @request_method = request_method @message = "#{request_method.upcase} requests are not supported by this resource." @http_status_code = 405 end |