Exception: LeakyBucket::TooManyRequests

Inherits:
StandardError
  • Object
show all
Defined in:
lib/leaky_bucket/throttler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_inObject

Returns the value of attribute retry_in.



4
5
6
# File 'lib/leaky_bucket/throttler.rb', line 4

def retry_in
  @retry_in
end