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(klass, *args) ⇒ Entry
constructor
A new instance of Entry.
- #make_new ⇒ Object
Constructor Details
#initialize(klass, *args) ⇒ Entry
Returns a new instance of Entry.
150 151 152 153 |
# File 'lib/sidekiq/middleware/chain.rb', line 150 def initialize(klass, *args) @klass = klass @args = args end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
148 149 150 |
# File 'lib/sidekiq/middleware/chain.rb', line 148 def klass @klass end |
Instance Method Details
#make_new ⇒ Object
155 156 157 |
# File 'lib/sidekiq/middleware/chain.rb', line 155 def make_new @klass.new(*@args) end |