Class: Berater::Unlimiter

Inherits:
Limiter
  • Object
show all
Defined in:
lib/berater/unlimiter.rb

Instance Attribute Summary

Attributes inherited from Limiter

#capacity, #key, #options

Instance Method Summary collapse

Methods inherited from Limiter

#==, #limit, new, #redis, #utilization

Constructor Details

#initialize(key = :unlimiter, *args, **opts) ⇒ Unlimiter

Returns a new instance of Unlimiter.



4
5
6
# File 'lib/berater/unlimiter.rb', line 4

def initialize(key = :unlimiter, *args, **opts)
  super(key, Float::INFINITY, **opts)
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/berater/unlimiter.rb', line 8

def to_s
  "#<#{self.class}>"
end