lib/throttling.rb
# Resets all values to their default state (mostly for testing purpose).
Resets all values to their default state (mostly for testing purpose).
Resets all values to their default state ( mostly for testing purpose ) .
def reset_defaults!
      @@enabled       = true
      @@logger        = nil
      @@storage       = nil
      @@limits_config = nil
      @@instances     = {}
      @@config        = nil
    end
def reset_defaults! @@enabled = true @@logger = nil @@storage = nil @@limits_config = nil @@instances = { } @@config = nil end
Resets all values to their default state (mostly for testing purpose).
Resets all values to their default state ( mostly for testing purpose ) .
# Internal variables