Class: PayjpMock::Response::Error::ApiError
- Inherits:
-
Base
- Object
- Base
- Base
- PayjpMock::Response::Error::ApiError
show all
- Defined in:
- lib/payjp_mock/response/error/api_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
|
# File 'lib/payjp_mock/response/error/api_error.rb', line 3
def default_attributes
{
code: 'under_maintenance',
message: 'PAY.JP is currently undergoing maintenance. Please try again later.',
status: status,
type: 'server_error'
}
end
|
#status ⇒ Object
12
13
14
|
# File 'lib/payjp_mock/response/error/api_error.rb', line 12
def status
503
end
|