Module: RateLimit::Config::Defaults

Defined in:
lib/rate_limit/config/defaults.rb

Constant Summary collapse

LIMITS_FILE_PATH =

Limits File Path

'config/rate-limit.yml'
WINDOW_INTERVAL =

Fixed Window Defaults

60
WINDOW_THRESHOLD =
2

Class Method Summary collapse

Class Method Details

.raw_limitsObject



14
15
16
17
18
# File 'lib/rate_limit/config/defaults.rb', line 14

def raw_limits
  {
    RateLimit.config.default_threshold => RateLimit.config.default_interval
  }
end