Sha256: 78339df73d02cc4961ea1e71bf25edec17fde0aff8205aa21f0f54e90c1e69d3
Contents?: true
Size: 399 Bytes
Versions: 4
Compression:
Stored size: 399 Bytes
Contents
require 'angellist_api/error' module AngellistApi # Raised when AngellistApi returns the HTTP status code 420 class Error::EnhanceYourCalm < AngellistApi::Error # The number of seconds your application should wait before requesting date # from the API again def retry_after @http_headers.values_at('retry-after', 'Retry-After').detect {|value| value }.to_i end end end
Version data entries
4 entries across 4 versions & 1 rubygems