Sha256: 314bc0e0bc598a54c3c2e9044f58ba4da26597e996bec93b0b435db74019e280

Contents?: true

Size: 301 Bytes

Versions: 7

Compression:

Stored size: 301 Bytes

Contents

module Tako
  class Proxy
    attr_reader :shard_name
    attr_reader :connection

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

    def with_shard
      Tako::ProxyStack.with_shard(self) do
        yield
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tako-0.6.0 lib/tako/proxy.rb
tako-0.5.0 lib/tako/proxy.rb
tako-0.4.1 lib/tako/proxy.rb
tako-0.4.0 lib/tako/proxy.rb
tako-0.3.2 lib/tako/proxy.rb
tako-0.3.1 lib/tako/proxy.rb
tako-0.3.0 lib/tako/proxy.rb