Class: RedisRing::SlaveRPC
- Inherits:
-
Object
- Object
- RedisRing::SlaveRPC
- Defined in:
- lib/redis_ring/slave_rpc.rb
Defined Under Namespace
Classes: Connection
Instance Attribute Summary collapse
-
#http_client ⇒ Object
readonly
Returns the value of attribute http_client.
Instance Method Summary collapse
- #connection(host, port) ⇒ Object
-
#initialize(http_client) ⇒ SlaveRPC
constructor
A new instance of SlaveRPC.
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_client ⇒ Object (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 |