Class: RedisLock::Strategy
- Inherits:
-
Object
- Object
- RedisLock::Strategy
- Defined in:
- lib/redis_lock/strategy.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#lock ⇒ Object
readonly
Returns the value of attribute lock.
Instance Method Summary collapse
- #after_perform ⇒ Object
- #call(&block) ⇒ Object
-
#initialize(lock, args = {}) ⇒ Strategy
constructor
A new instance of Strategy.
Constructor Details
#initialize(lock, args = {}) ⇒ Strategy
Returns a new instance of Strategy.
5 6 7 8 |
# File 'lib/redis_lock/strategy.rb', line 5 def initialize(lock, args = {}) @lock = lock @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/redis_lock/strategy.rb', line 3 def args @args end |
#lock ⇒ Object (readonly)
Returns the value of attribute lock.
3 4 5 |
# File 'lib/redis_lock/strategy.rb', line 3 def lock @lock end |
Instance Method Details
#after_perform ⇒ Object
14 15 |
# File 'lib/redis_lock/strategy.rb', line 14 def after_perform end |
#call(&block) ⇒ Object
10 11 12 |
# File 'lib/redis_lock/strategy.rb', line 10 def call(&block) raise NotImplementedError end |