Exception: PaystackGateway::Transfers::InitiateTransferError
- Inherits:
-
ApiError
- Object
- StandardError
- ApiError
- PaystackGateway::Transfers::InitiateTransferError
- Defined in:
- lib/paystack_gateway/transfers.rb
Overview
Raised when an error occurs while calling POST /transfer
Constant Summary
Constants inherited from ApiError
ApiError::CONNECTION_ERROR_CLASSES
Instance Attribute Summary
Attributes inherited from ApiError
Instance Method Summary collapse
Methods inherited from ApiError
#initialize, #method_missing, #network_error?, #respond_to_missing?
Constructor Details
This class inherits a constructor from PaystackGateway::ApiError
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PaystackGateway::ApiError
Instance Method Details
#failure_reason ⇒ Object
25 26 27 |
# File 'lib/paystack_gateway/transfers.rb', line 25 def failure_reason response_body[:message] end |
#transaction_failed? ⇒ Boolean
21 22 23 |
# File 'lib/paystack_gateway/transfers.rb', line 21 def transaction_failed? response_body[:status] == false && http_code == 400 end |