Exception: Hyperdrive::Errors::NotImplemented
- Defined in:
- lib/hyperdrive/errors/not_implemented.rb
Instance Method Summary collapse
- #http_status_code ⇒ Object
-
#initialize(request_method) ⇒ NotImplemented
constructor
A new instance of NotImplemented.
- #message ⇒ Object
Constructor Details
#initialize(request_method) ⇒ NotImplemented
Returns a new instance of NotImplemented.
4 5 6 |
# File 'lib/hyperdrive/errors/not_implemented.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/not_implemented.rb', line 12 def http_status_code 501 end |
#message ⇒ Object
8 9 10 |
# File 'lib/hyperdrive/errors/not_implemented.rb', line 8 def "The server either does not recognise the request method (#{@request_method}), or it lacks the ability to fulfill the request." end |