Exception: Hyperdrive::Errors::MethodNotAllowed
- Defined in:
- lib/hyperdrive/errors/method_not_allowed.rb
Instance Method Summary collapse
- #http_status_code ⇒ Object
-
#initialize(request_method) ⇒ MethodNotAllowed
constructor
A new instance of MethodNotAllowed.
- #message ⇒ Object
Constructor Details
#initialize(request_method) ⇒ MethodNotAllowed
Returns a new instance of MethodNotAllowed.
4 5 6 |
# File 'lib/hyperdrive/errors/method_not_allowed.rb', line 4 def initialize(request_method) @request_method = request_method end |
Instance Method Details
#http_status_code ⇒ Object
12 13 14 |
# File 'lib/hyperdrive/errors/method_not_allowed.rb', line 12 def http_status_code 405 end |
#message ⇒ Object
8 9 10 |
# File 'lib/hyperdrive/errors/method_not_allowed.rb', line 8 def "A request was made using a request method (#{@request_method}) not supported by this resource." end |