Class: Brpoplpush::RedisScript::Config
- Inherits:
-
Object
- Object
- Brpoplpush::RedisScript::Config
- Defined in:
- lib/brpoplpush/redis_script/config.rb
Overview
Class holding gem configuration
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#scripts_path ⇒ Object
Returns the value of attribute scripts_path.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Initialize a new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/brpoplpush/redis_script/config.rb', line 13 def logger @logger end |
#scripts_path ⇒ Object
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 |