Exception: PaystackGateway::Verification::ResolveAccountNumberError
- Inherits:
-
ApiError
- Object
- StandardError
- ApiError
- PaystackGateway::Verification::ResolveAccountNumberError
- Defined in:
- lib/paystack_gateway/verification.rb
Overview
Raised when an error occurs while calling /bank/resolve
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
#invalid_account? ⇒ Boolean
19 20 21 |
# File 'lib/paystack_gateway/verification.rb', line 19 def invalid_account? http_code == 422 && response_body[:status] == false end |