Exception: KnoxCall::RateLimitError
- Defined in:
- lib/knoxcall/errors.rb
Instance Attribute Summary
Attributes inherited from APIError
#body, #code, #headers, #request_id, #status_code
Instance Method Summary collapse
-
#retry_after ⇒ Object
Server-requested delay in seconds, if a Retry-After header was sent.
Methods inherited from APIError
Constructor Details
This class inherits a constructor from KnoxCall::APIError
Instance Method Details
#retry_after ⇒ Object
Server-requested delay in seconds, if a Retry-After header was sent.
75 76 77 78 |
# File 'lib/knoxcall/errors.rb', line 75 def retry_after v = @headers["retry-after"] v && v.to_f end |