Class: RedisRing::MasterRPC
- Inherits:
-
Object
- Object
- RedisRing::MasterRPC
- Defined in:
- lib/redis_ring/master_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) ⇒ MasterRPC
constructor
A new instance of MasterRPC.
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_client ⇒ Object (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 |