Class: RedisHA::Base
- Inherits:
-
Object
- Object
- RedisHA::Base
- Defined in:
- lib/redis_ha/crdt/base.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#merge_strategy ⇒ Object
Returns the value of attribute merge_strategy.
-
#pool ⇒ Object
Returns the value of attribute pool.
Instance Method Summary collapse
-
#initialize(pool, key) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(pool, key) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/redis_ha/crdt/base.rb', line 5 def initialize(pool, key) @pool = pool @key = key end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/redis_ha/crdt/base.rb', line 3 def key @key end |
#merge_strategy ⇒ Object
Returns the value of attribute merge_strategy.
3 4 5 |
# File 'lib/redis_ha/crdt/base.rb', line 3 def merge_strategy @merge_strategy end |
#pool ⇒ Object
Returns the value of attribute pool.
3 4 5 |
# File 'lib/redis_ha/crdt/base.rb', line 3 def pool @pool end |