lib/hyperdrive/errors/missing_required_param.rb in hyperdrive-0.0.7 vs lib/hyperdrive/errors/missing_required_param.rb in hyperdrive-0.0.8
- old
+ new
@@ -1,19 +1,10 @@
module Hyperdrive
module Errors
class MissingRequiredParam < HTTPError
- attr_reader :param, :http_request_method
def initialize(param, http_request_method)
- @param = param
- @http_request_method = http_request_method
- end
-
- def message
- "The #{param} param is required by #{http_request_method} requests."
- end
-
- def http_status_code
- 400
+ @message = "The #{param} param is required by #{http_request_method} requests."
+ @http_status_code = 400
end
end
end
end