Exception: Attio::RateLimitError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- Attio::RateLimitError
- Defined in:
- lib/attio/errors.rb
Overview
422
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
429.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, response = nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
52 53 54 55 |
# File 'lib/attio/errors.rb', line 52 def initialize(, response = nil) super @retry_after = extract_retry_after(response) if response end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
429
50 51 52 |
# File 'lib/attio/errors.rb', line 50 def retry_after @retry_after end |