Class: Sidekiq::Middleware::Entry
- Inherits:
-
Object
- Object
- Sidekiq::Middleware::Entry
- Defined in:
- lib/sidekiq/middleware/chain.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(config, klass, *args) ⇒ Entry
constructor
A new instance of Entry.
- #make_new ⇒ Object
Constructor Details
#initialize(config, klass, *args) ⇒ Entry
Returns a new instance of Entry.
158 159 160 161 162 |
# File 'lib/sidekiq/middleware/chain.rb', line 158 def initialize(config, klass, *args) @config = config @klass = klass @args = args end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
156 157 158 |
# File 'lib/sidekiq/middleware/chain.rb', line 156 def klass @klass end |
Instance Method Details
#make_new ⇒ Object
164 165 166 167 168 |
# File 'lib/sidekiq/middleware/chain.rb', line 164 def make_new x = @klass.new(*@args) x.config = @config if @config && x.respond_to?(:config=) x end |