Class: Sidekiq::Middleware::Entry Private
- Inherits:
-
Object
- Object
- Sidekiq::Middleware::Entry
- Defined in:
- lib/sidekiq/middleware/chain.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Represents each link in the middleware chain
Instance Attribute Summary collapse
- #klass ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(config, klass, *args) ⇒ Entry
constructor
private
A new instance of Entry.
- #make_new ⇒ Object private
Constructor Details
#initialize(config, klass, *args) ⇒ Entry
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Entry.
194 195 196 197 198 |
# File 'lib/sidekiq/middleware/chain.rb', line 194 def initialize(config, klass, *args) @config = config @klass = klass @args = args end |
Instance Attribute Details
#klass ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
192 193 194 |
# File 'lib/sidekiq/middleware/chain.rb', line 192 def klass @klass end |
Instance Method Details
#make_new ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
200 201 202 203 204 |
# File 'lib/sidekiq/middleware/chain.rb', line 200 def make_new x = @klass.new(*@args) x.config = @config if @config && x.respond_to?(:config=) x end |