Exception: SeatLayer::RateLimitError
- Defined in:
- lib/seatlayer/errors.rb
Overview
retry_afterprefers the header over the JSON field.
Instance Attribute Summary collapse
-
#retry_after ⇒ Float
readonly
Seconds to wait before retrying.
Attributes inherited from APIError
#body, #code, #request_id, #status
Instance Method Summary collapse
-
#initialize(retry_after:, **attrs) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Methods inherited from APIError
Constructor Details
#initialize(retry_after:, **attrs) ⇒ RateLimitError
Returns a new instance of RateLimitError.
95 96 97 98 |
# File 'lib/seatlayer/errors.rb', line 95 def initialize(retry_after:, **attrs) @retry_after = retry_after super(**attrs) end |
Instance Attribute Details
#retry_after ⇒ Float (readonly)
Returns seconds to wait before retrying.
93 94 95 |
# File 'lib/seatlayer/errors.rb', line 93 def retry_after @retry_after end |