Class: Servitium::Configuration
- Inherits:
-
Object
- Object
- Servitium::Configuration
- Defined in:
- lib/servitium/configuration.rb
Instance Attribute Summary collapse
-
#bg_jobs_platform ⇒ Object
Returns the value of attribute bg_jobs_platform.
-
#logger ⇒ Object
logger [Object].
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_platform ⇒ Object
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 |
#logger ⇒ Object
logger [Object].
15 16 17 |
# File 'lib/servitium/configuration.rb', line 15 def logger @logger.is_a?(Proc) ? instance_exec(&@logger) : @logger end |