Exception: KnoxCall::RateLimitError

Inherits:
APIError show all
Defined in:
lib/knoxcall/errors.rb

Instance Attribute Summary

Attributes inherited from APIError

#body, #code, #headers, #request_id, #status_code

Instance Method Summary collapse

Methods inherited from APIError

#initialize, #type

Constructor Details

This class inherits a constructor from KnoxCall::APIError

Instance Method Details

#retry_after ⇒ Object

Server-requested delay in seconds, if a Retry-After header was sent.



75
76
77
78
# File 'lib/knoxcall/errors.rb', line 75

def retry_after
  v = @headers["retry-after"]
  v && v.to_f
end