Exception: AngellistApi::Error::EnhanceYourCalm
- Inherits:
-
AngellistApi::Error
- Object
- StandardError
- AngellistApi::Error
- AngellistApi::Error::EnhanceYourCalm
- Defined in:
- lib/angellist_api/error/enhance_your_calm.rb
Overview
Raised when AngellistApi returns the HTTP status code 420
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 date 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 date from the API again
8 9 10 |
# File 'lib/angellist_api/error/enhance_your_calm.rb', line 8 def retry_after @http_headers.values_at('retry-after', 'Retry-After').detect {|value| value }.to_i end |