Class: Sidekiq::Middleware::Entry Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#klassObject (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_newObject

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