Sha256: f1f5f68b3a68e59346791b86522d7e57c8ddd685cf363c82617f7106869e75a3

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

class RedisLock
  class Config
    def redis=(hash = {})
      @redis = hash
    end

    def redis
      fail "[RedisLock::Config] redis connection setup is not set" unless @redis
      @redis
    end

    def logger=(logger)
      @logger = logger
    end

    def logger
      @logger ? @logger : Logger.new(STDOUT)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_lock-0.1.0 lib/redis_lock/config.rb