Class: SidekiqUniqueJobs::Script::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq_unique_jobs/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 SidekiqUniqueJobs::Script::Config



23
24
25
26
27
# File 'lib/sidekiq_unique_jobs/script/config.rb', line 23

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

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



13
14
15
# File 'lib/sidekiq_unique_jobs/script/config.rb', line 13

def logger
  @logger
end

#scripts_pathObject

Returns the value of attribute scripts_path.



17
18
19
# File 'lib/sidekiq_unique_jobs/script/config.rb', line 17

def scripts_path
  @scripts_path
end