lib/limiter/base.rb
##
# Returns `false` if the rate limit has been exceeded for the given
# `request`, or `true` otherwise.
#
# Override this method in subclasses that implement custom rate limiter
# strategies.
#
# @param  [Rack::Request] request
# @return [Boolean]


Override this method in subclasses that implement custom rate limiter
strategies.
Override this method in subclasses that implement custom rate limiter strategies .
def allowed?(request)
      case
      when allow_path?(request)  then true
      when allow_agent?(request) then true
      when whitelisted?(request) then true
      when blacklisted?(request) then false
      else nil 
      end
    end
def allowed? ( request ) case when allow_path? ( request ) then true when allow_agent? ( request ) then true when whitelisted? ( request ) then true when blacklisted? ( request ) then false else nil end end
Returns `false` if the rate limit has been exceeded for the given
`request`, or `true` otherwise.
Returns ` false ` if the rate limit has been exceeded for the given ` request ` or ` true ` otherwise .
# override in subclasses
None
Boolean
request
<not_specific>
<not_specific>
None