Exception: FlexOps::RateLimitError
- Defined in:
- lib/flexops/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(retry_after: 0) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(retry_after: 0) ⇒ RateLimitError
Returns a new instance of RateLimitError.
30 31 32 33 |
# File 'lib/flexops/errors.rb', line 30 def initialize(retry_after: 0) super("Rate limited. Retry after #{retry_after}s", status: 429, code: "RATE_LIMITED") @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
28 29 30 |
# File 'lib/flexops/errors.rb', line 28 def retry_after @retry_after end |