Exception: Browserbeam::RateLimitError
- Defined in:
- lib/browserbeam/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
#code, #context, #request_id, #status_code
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.
21 22 23 24 |
# File 'lib/browserbeam/errors.rb', line 21 def initialize(, retry_after: nil, **kwargs) super(, **kwargs) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
19 20 21 |
# File 'lib/browserbeam/errors.rb', line 19 def retry_after @retry_after end |