Exception: VisionAPI::InsufficientCreditsError
- Defined in:
- lib/vision_api/errors.rb
Overview
402 — the account does not hold enough credits. Never retried: it cannot succeed.
Constant Summary
Constants inherited from APIError
Instance Attribute Summary
Attributes inherited from APIError
#code, #details, #headers, #request_id, #status
Instance Method Summary collapse
-
#available ⇒ Integer?
The balance at the time of the refusal.
-
#required ⇒ Integer?
The credit cost of the request that was refused.
Methods inherited from APIError
Constructor Details
This class inherits a constructor from VisionAPI::APIError
Instance Method Details
#available ⇒ Integer?
Returns the balance at the time of the refusal.
70 |
# File 'lib/vision_api/errors.rb', line 70 def available = details["available"] |
#required ⇒ Integer?
Returns the credit cost of the request that was refused.
67 |
# File 'lib/vision_api/errors.rb', line 67 def required = details["required"] |