Class: RedisRing::NodeProvider
- Inherits:
-
Object
- Object
- RedisRing::NodeProvider
- Defined in:
- lib/redis_ring/node.rb
Instance Attribute Summary collapse
-
#slave_rpc ⇒ Object
readonly
Returns the value of attribute slave_rpc.
Instance Method Summary collapse
-
#initialize(slave_rpc) ⇒ NodeProvider
constructor
A new instance of NodeProvider.
- #new(host, port) ⇒ Object
Constructor Details
#initialize(slave_rpc) ⇒ NodeProvider
Returns a new instance of NodeProvider.
7 8 9 |
# File 'lib/redis_ring/node.rb', line 7 def initialize(slave_rpc) @slave_rpc = slave_rpc end |
Instance Attribute Details
#slave_rpc ⇒ Object (readonly)
Returns the value of attribute slave_rpc.
5 6 7 |
# File 'lib/redis_ring/node.rb', line 5 def slave_rpc @slave_rpc end |