Sha256: cdd1818acb2dc95eb49a2ec3dfcdf690cb8125069bc65b7dc3926cce44fbf5e1

Contents?: true

Size: 208 Bytes

Versions: 7

Compression:

Stored size: 208 Bytes

Contents

module PipeRpc
  class Hub::Clients
    def initialize(hub)
      @hub = hub
      @clients = {}
    end

    def [](server)
      @clients[server.to_sym] ||= Client.new(server.to_sym, @hub)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pipe_rpc-2.2.0 lib/pipe_rpc/hub_clients.rb
pipe_rpc-2.1.0 lib/pipe_rpc/hub_clients.rb
pipe_rpc-2.0.0 lib/pipe_rpc/hub_clients.rb
pipe_rpc-1.1.2 lib/pipe_rpc/hub_clients.rb
pipe_rpc-1.1.1 lib/pipe_rpc/hub_clients.rb
pipe_rpc-1.1.0 lib/pipe_rpc/hub_clients.rb
pipe_rpc-1.0.0 lib/pipe_rpc/hub_clients.rb