Class: Berater::Inhibitor
Constant Summary
Constants inherited from Limiter
Instance Attribute Summary
Attributes inherited from Limiter
Instance Method Summary collapse
- 
  
    
      #initialize(key = :inhibitor, *args, **opts)  ⇒ Inhibitor 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Inhibitor. 
- #to_s ⇒ Object
Methods inherited from Limiter
#==, cache_key, #limit, new, #redis, #utilization
Constructor Details
#initialize(key = :inhibitor, *args, **opts) ⇒ Inhibitor
Returns a new instance of Inhibitor.
| 4 5 6 | # File 'lib/berater/inhibitor.rb', line 4 def initialize(key = :inhibitor, *args, **opts) super(key, 0, **opts) end | 
Instance Method Details
#to_s ⇒ Object
| 8 9 10 | # File 'lib/berater/inhibitor.rb', line 8 def to_s "#<#{self.class}>" end |