Sha256: e06c82b734890bff289b018ec3f852a55945cfd1460ebbce5eae7963c086d43e

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

require "nexaas/throttle/version"
require "nexaas/throttle/configuration"
require "nexaas/throttle/engine"
require "nexaas/throttle/guardian"

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nexaas-throttle-2.0.2 lib/nexaas/throttle.rb
nexaas-throttle-2.0.1 lib/nexaas/throttle.rb
nexaas-throttle-2.0.0 lib/nexaas/throttle.rb
nexaas-throttle-1.0.0 lib/nexaas/throttle.rb
nexaas-throttle-0.2.0 lib/nexaas/throttle.rb
nexaas-throttle-0.1.0 lib/nexaas/throttle.rb