Exception: Fopost::RateLimitError
- Defined in:
- lib/fopost/errors.rb
Overview
429 — rate limit exceeded. #retry_after is in seconds when the API sends it.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#body, #code, #message, #status
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, body: nil, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from Error
Constructor Details
#initialize(message, status:, code: nil, body: nil, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
63 64 65 66 |
# File 'lib/fopost/errors.rb', line 63 def initialize(, status:, code: nil, body: nil, retry_after: nil) super(, status: status, code: code, body: body) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
61 62 63 |
# File 'lib/fopost/errors.rb', line 61 def retry_after @retry_after end |