Class: Rookout::Exceptions::RookRuleRateLimited

Inherits:
Object
  • Object
show all
Defined in:
lib/rookout/exceptions.rb

Class Method Summary collapse

Class Method Details

.createObject



120
121
122
123
124
125
# File 'lib/rookout/exceptions.rb', line 120

def self.create
  if Rookout::Config.using_global_rate_limiter
    return RookRuleGlobalRateLimited.new
  end
  RookRuleAugRateLimited.new
end