Class: Money::Distributed::Redis
- Inherits:
-
Object
- Object
- Money::Distributed::Redis
- Defined in:
- lib/money/distributed/redis.rb
Overview
Wrapper over different parameters that can be provided for redis
Instance Method Summary collapse
- #exec(&block) ⇒ Object
-
#initialize(redis) ⇒ Redis
constructor
A new instance of Redis.
Constructor Details
#initialize(redis) ⇒ Redis
Returns a new instance of Redis.
8 9 10 |
# File 'lib/money/distributed/redis.rb', line 8 def initialize(redis) @redis_proc = build_redis_proc(redis) end |
Instance Method Details
#exec(&block) ⇒ Object
12 13 14 |
# File 'lib/money/distributed/redis.rb', line 12 def exec(&block) @redis_proc.call(&block) end |