Exception: Twitter::Error::EnhanceYourCalm
- Inherits:
-
ClientError
- Object
- StandardError
- Twitter::Error
- ClientError
- Twitter::Error::EnhanceYourCalm
- Defined in:
- lib/twitter/error/enhance_your_calm.rb
Overview
Raised when Twitter returns the HTTP status code 420
Instance Attribute Summary
Attributes inherited from Twitter::Error
Instance Method Summary collapse
-
#retry_after ⇒ Object
The number of seconds your application should wait before requesting date from the Search API again.
Methods inherited from Twitter::Error
#initialize, #ratelimit_limit, #ratelimit_remaining, #ratelimit_reset
Constructor Details
This class inherits a constructor from Twitter::Error
Instance Method Details
#retry_after ⇒ Object
The number of seconds your application should wait before requesting date from the Search API again
9 10 11 |
# File 'lib/twitter/error/enhance_your_calm.rb', line 9 def retry_after @http_headers.values_at('retry-after', 'Retry-After').detect{|value| value }.to_i end |