Exception: AngellistApi::Error::TooManyRequests
- Inherits:
-
AngellistApi::Error
- Object
- StandardError
- AngellistApi::Error
- AngellistApi::Error::TooManyRequests
- Defined in:
- lib/angellist_api/error/too_many_requests.rb
Constant Summary
Constants inherited from AngellistApi::Error
Instance Attribute Summary
Attributes inherited from AngellistApi::Error
Instance Method Summary collapse
-
#retry_after ⇒ Object
The number of seconds your application should wait before requesting data from the API again.
Methods inherited from AngellistApi::Error
#initialize, #ratelimit_limit, #ratelimit_remaining, #ratelimit_reset
Constructor Details
This class inherits a constructor from AngellistApi::Error
Instance Method Details
#retry_after ⇒ Object
The number of seconds your application should wait before requesting data from the API again.
This may not be supported by AngelList currently but is suggested in RFC 6585 for the 429 status code.
16 17 18 19 |
# File 'lib/angellist_api/error/too_many_requests.rb', line 16 def retry_after retry_after = http_headers['retry-after'] retry_after.to_i if retry_after end |