Exception: ThrottleMachines::ThrottledError
- Inherits:
-
StandardError
- Object
- StandardError
- ThrottleMachines::ThrottledError
- Defined in:
- lib/throttle_machines/throttled_error.rb
Instance Attribute Summary collapse
-
#limiter ⇒ Object
readonly
Returns the value of attribute limiter.
Instance Method Summary collapse
-
#initialize(limiter) ⇒ ThrottledError
constructor
A new instance of ThrottledError.
Constructor Details
#initialize(limiter) ⇒ ThrottledError
Returns a new instance of ThrottledError.
7 8 9 10 |
# File 'lib/throttle_machines/throttled_error.rb', line 7 def initialize(limiter) @limiter = limiter super("Rate limit exceeded for #{limiter.key}") end |
Instance Attribute Details
#limiter ⇒ Object (readonly)
Returns the value of attribute limiter.
5 6 7 |
# File 'lib/throttle_machines/throttled_error.rb', line 5 def limiter @limiter end |