Class: Servitium::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/servitium/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/servitium/configuration.rb', line 7

def initialize
  @logger = Logger.new(STDOUT)
  @logger.level = Logger::INFO

  @bg_jobs_platform = :active_job
end

Instance Attribute Details

#bg_jobs_platformObject

Returns the value of attribute bg_jobs_platform.



5
6
7
# File 'lib/servitium/configuration.rb', line 5

def bg_jobs_platform
  @bg_jobs_platform
end

#loggerObject

logger [Object].



15
16
17
# File 'lib/servitium/configuration.rb', line 15

def logger
  @logger.is_a?(Proc) ? instance_exec(&@logger) : @logger
end