Class: RedisRing::MasterRPC

Inherits:
Object
  • Object
show all
Defined in:
lib/redis_ring/master_rpc.rb

Defined Under Namespace

Classes: Connection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_client) ⇒ MasterRPC

Returns a new instance of MasterRPC.



7
8
9
# File 'lib/redis_ring/master_rpc.rb', line 7

def initialize(http_client)
  @http_client = http_client
end

Instance Attribute Details

#http_clientObject (readonly)

Returns the value of attribute http_client.



5
6
7
# File 'lib/redis_ring/master_rpc.rb', line 5

def http_client
  @http_client
end

Instance Method Details

#connection(host, port) ⇒ Object



11
12
13
# File 'lib/redis_ring/master_rpc.rb', line 11

def connection(host, port)
  Connection.new(http_client, host, port)
end