Exception: AngellistApi::Error::TooManyRequests

Inherits:
AngellistApi::Error show all
Defined in:
lib/angellist_api/error/too_many_requests.rb

Constant Summary

Constants inherited from AngellistApi::Error

EnhanceYourCalm

Instance Attribute Summary

Attributes inherited from AngellistApi::Error

#http_headers

Instance Method Summary collapse

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_afterObject

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