Class: PayjpMock::Response::Error::InvalidRequestError
- Inherits:
-
Base
- Object
- Base
- Base
- PayjpMock::Response::Error::InvalidRequestError
show all
- Defined in:
- lib/payjp_mock/response/error/invalid_request_error.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes
Instance Method Summary
collapse
Methods inherited from Base
#body, #initialize
Methods inherited from Base
#body, #exception, #to_h
Instance Method Details
#default_attributes ⇒ Object
3
4
5
6
7
8
9
10
11
|
# File 'lib/payjp_mock/response/error/invalid_request_error.rb', line 3
def default_attributes
{
code: 'missing_param',
message: 'Missing required param to charge',
param: 'amount',
status: status,
type: 'client_error'
}
end
|
#status ⇒ Object
13
14
15
|
# File 'lib/payjp_mock/response/error/invalid_request_error.rb', line 13
def status
400
end
|