Class: ActsAsLockableBy::Configuration
- Inherits:
-
Object
- Object
- ActsAsLockableBy::Configuration
- Defined in:
- lib/acts_as_lockable_by.rb
Instance Attribute Summary collapse
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
23 24 25 26 |
# File 'lib/acts_as_lockable_by.rb', line 23 def initialize @redit = Redis.new @ttl = 30.seconds end |
Instance Attribute Details
#redis ⇒ Object
Returns the value of attribute redis.
21 22 23 |
# File 'lib/acts_as_lockable_by.rb', line 21 def redis @redis end |
#ttl ⇒ Object
Returns the value of attribute ttl.
21 22 23 |
# File 'lib/acts_as_lockable_by.rb', line 21 def ttl @ttl end |