Class: Brpoplpush::RedisScript::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/brpoplpush/redis_script/config.rb

Overview

Class holding gem configuration

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Initialize a new instance of Brpoplpush::RedisScript::Config



23
24
25
26
27
# File 'lib/brpoplpush/redis_script/config.rb', line 23

def initialize
  @conn         = Redis.new
  @logger       = Logger.new($stdout)
  @scripts_path = nil
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



13
14
15
# File 'lib/brpoplpush/redis_script/config.rb', line 13

def logger
  @logger
end

#scripts_pathObject

Returns the value of attribute scripts_path.



17
18
19
# File 'lib/brpoplpush/redis_script/config.rb', line 17

def scripts_path
  @scripts_path
end