Class: ActsAsLockableBy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_lockable_by.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#redisObject

Returns the value of attribute redis.



21
22
23
# File 'lib/acts_as_lockable_by.rb', line 21

def redis
  @redis
end

#ttlObject

Returns the value of attribute ttl.



21
22
23
# File 'lib/acts_as_lockable_by.rb', line 21

def ttl
  @ttl
end