module RateLimiter::Model::InstanceMethods

Instance methods available to models after RateLimiter has been initialized by calling `rate_limit`.

Public Instance Methods

rate_limit_exceeded?() click to toggle source
# File lib/rate_limiter/model.rb, line 40
def rate_limit_exceeded?
  throttle.exceeded?
end
throttle() click to toggle source
# File lib/rate_limiter/model.rb, line 44
def throttle
  Throttle.new(self, self.class.rate_limiter_options)
end