Sha256: fbab0bf56a129b6ea45ac44679e59afa26fd523032027dcd69b1ddb887c66a29

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

module Tako
  class Proxy
    attr_reader :shard_name
    attr_reader :connection
    attr_accessor :base

    def initialize(shard_name, connection, base)
      @shard_name = shard_name
      @connection = connection
      @base = base
    end

    def in_proxy
      Tako::ProxyStack.in_piles(self) do
        yield
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tako-0.2.2 lib/tako/proxy.rb
tako-0.2.1 lib/tako/proxy.rb
tako-0.2.0 lib/tako/proxy.rb
tako-0.1.0 lib/tako/proxy.rb