Class: SidekiqHerokuScaler::SidekiqConfig
- Inherits:
-
Object
- Object
- SidekiqHerokuScaler::SidekiqConfig
- Defined in:
- lib/sidekiq-heroku-scaler/sidekiq_config.rb
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(commands = []) ⇒ SidekiqConfig
constructor
A new instance of SidekiqConfig.
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
#config ⇒ Object
14 15 16 |
# File 'lib/sidekiq-heroku-scaler/sidekiq_config.rb', line 14 def config @config ||= ActiveSupport::HashWithIndifferentAccess.new((commands)) end |