Class: RedisRing::SlaveRPC

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

Defined Under Namespace

Classes: Connection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_client) ⇒ SlaveRPC

Returns a new instance of SlaveRPC.



6
7
8
# File 'lib/redis_ring/slave_rpc.rb', line 6

def initialize(http_client)
  @http_client = http_client
end

Instance Attribute Details

#http_clientObject (readonly)

Returns the value of attribute http_client.



4
5
6
# File 'lib/redis_ring/slave_rpc.rb', line 4

def http_client
  @http_client
end

Instance Method Details

#connection(host, port) ⇒ Object



10
11
12
# File 'lib/redis_ring/slave_rpc.rb', line 10

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