Exception: TwitterSearch::RateLimitError
- Inherits:
-
SearchServerError
- Object
- RuntimeError
- SearchServerError
- TwitterSearch::RateLimitError
- Defined in:
- lib/twitter_search.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(retry_after) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(retry_after) ⇒ RateLimitError
Returns a new instance of RateLimitError.
16 17 18 19 |
# File 'lib/twitter_search.rb', line 16 def initialize(retry_after) super "Twitter has rate limited your IP address; wait #{retry_after} seconds before retry." @retry_after = retry_after.to_i end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
15 16 17 |
# File 'lib/twitter_search.rb', line 15 def retry_after @retry_after end |