Module: Nexaas::Throttle

Defined in:
lib/nexaas/throttle.rb,
lib/nexaas/throttle/engine.rb,
lib/nexaas/throttle/version.rb,
lib/nexaas/throttle/guardian.rb,
lib/nexaas/throttle/middleware.rb,
lib/nexaas/throttle/configuration.rb

Defined Under Namespace

Classes: Configuration, Engine, Guardian, Middleware

Constant Summary collapse

VERSION =
"1.0.0".freeze

Class Method Summary collapse

Class Method Details

.configurationObject



13
14
15
# File 'lib/nexaas/throttle.rb', line 13

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
# File 'lib/nexaas/throttle.rb', line 8

def self.configure
  yield(configuration) if block_given?
  configuration.check!
end