Exception: LeakyBucket::TooManyRequests
- Inherits:
-
StandardError
- Object
- StandardError
- LeakyBucket::TooManyRequests
- Defined in:
- lib/leaky_bucket/throttler.rb
Instance Attribute Summary collapse
-
#retry_in ⇒ Object
Returns the value of attribute retry_in.
Instance Method Summary collapse
-
#initialize(retry_in) ⇒ TooManyRequests
constructor
A new instance of TooManyRequests.
Constructor Details
#initialize(retry_in) ⇒ TooManyRequests
Returns a new instance of TooManyRequests.
6 7 8 |
# File 'lib/leaky_bucket/throttler.rb', line 6 def initialize(retry_in) self.retry_in = retry_in end |
Instance Attribute Details
#retry_in ⇒ Object
Returns the value of attribute retry_in.
4 5 6 |
# File 'lib/leaky_bucket/throttler.rb', line 4 def retry_in @retry_in end |