Class: PayjpMock::Response::Error::Base
- Defined in:
- lib/payjp_mock/response/error/base.rb
Direct Known Subclasses
ApiConnectionError, ApiError, AuthenticationError, CardError, InvalidRequestError
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods inherited from Base
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
3 4 5 |
# File 'lib/payjp_mock/response/error/base.rb', line 3 def initialize @attributes = default_attributes end |
Instance Method Details
#body ⇒ Object
7 8 9 |
# File 'lib/payjp_mock/response/error/base.rb', line 7 def body { error: @attributes }.to_json end |