lib/hyperdrive/errors/method_not_allowed.rb in hyperdrive-0.0.7 vs lib/hyperdrive/errors/method_not_allowed.rb in hyperdrive-0.0.8
- old
+ new
@@ -1,17 +1,11 @@
module Hyperdrive
module Errors
class MethodNotAllowed < HTTPError
def initialize(request_method)
@request_method = request_method
- end
-
- def message
- "#{@request_method.upcase} requests are not supported by this resource."
- end
-
- def http_status_code
- 405
+ @message = "#{request_method.upcase} requests are not supported by this resource."
+ @http_status_code = 405
end
end
end
end