Class: Sidekiq::Middleware::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/middleware/chain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry.


140
141
142
143
# File 'lib/sidekiq/middleware/chain.rb', line 140

def initialize(klass, *args)
  @klass = klass
  @args  = args
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass


138
139
140
# File 'lib/sidekiq/middleware/chain.rb', line 138

def klass
  @klass
end

Instance Method Details

#make_newObject


145
146
147
# File 'lib/sidekiq/middleware/chain.rb', line 145

def make_new
  @klass.new(*@args)
end