Exception: Bloomy::RateLimitError
- Defined in:
- lib/bloomy/errors.rb
Overview
Raised when rate limited (429)
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError
Returns a new instance of RateLimitError.
28 29 30 31 |
# File 'lib/bloomy/errors.rb', line 28 def initialize(, retry_after: nil, **kwargs) @retry_after = retry_after super(, **kwargs) end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
26 27 28 |
# File 'lib/bloomy/errors.rb', line 26 def retry_after @retry_after end |