Sha256: fcb96df54c4f13ab76506029f38844ea10d8bd3f65f5e5a0ce195125e9c7ead8

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

require 'singleton'
require 'switch_point/proxy'

module SwitchPoint
  class ProxyRepository
    include Singleton

    def self.find(name)
      instance.find(name)
    end

    def find(name)
      proxies[name] ||= Proxy.new(name)
    end

    def proxies
      @proxies ||= {}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
switch_point-0.1.0 lib/switch_point/proxy_repository.rb