Sha256: 3d16fc297620e7788aaa8630eb910c80a93653e951a5f107d23a60d3218ae696

Contents?: true

Size: 361 Bytes

Versions: 3

Compression:

Stored size: 361 Bytes

Contents

require 'circuit_breaker-ruby/version'
require 'circuit_breaker-ruby/config'
require 'circuit_breaker-ruby/shield'
require 'timeout'

module CircuitBreaker
  class Open < StandardError; end

  class << self
    def config
      @config ||= CircuitBreaker::Config.new
    end

    def configure
      yield @config = CircuitBreaker::Config.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
circuit_breaker-ruby-0.1.2 lib/circuit_breaker-ruby.rb
circuit_breaker-ruby-0.1.1 lib/circuit_breaker-ruby.rb
circuit_breaker-ruby-0.1 lib/circuit_breaker-ruby.rb