Class: SidekiqHerokuScaler::SidekiqConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq-heroku-scaler/sidekiq_config.rb

Instance Method Summary collapse

Constructor Details

#initialize(commands = []) ⇒ SidekiqConfig

Returns a new instance of SidekiqConfig.



10
11
12
# File 'lib/sidekiq-heroku-scaler/sidekiq_config.rb', line 10

def initialize(commands = [])
  @commands = commands
end

Instance Method Details

#configObject



14
15
16
# File 'lib/sidekiq-heroku-scaler/sidekiq_config.rb', line 14

def config
  @config ||= ActiveSupport::HashWithIndifferentAccess.new(setup_options(commands))
end