Class: Cloudtasker::Middleware::Entry
- Inherits:
-
Object
- Object
- Cloudtasker::Middleware::Entry
- Defined in:
- lib/cloudtasker/middleware/chain.rb
Overview
Middleware list item.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, *args) ⇒ Entry
constructor
Build a new entry.
-
#make_new ⇒ Any
Return an instantiated middleware.
Constructor Details
#initialize(klass, *args) ⇒ Entry
Build a new entry.
235 236 237 238 |
# File 'lib/cloudtasker/middleware/chain.rb', line 235 def initialize(klass, *args) @klass = klass @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
227 228 229 |
# File 'lib/cloudtasker/middleware/chain.rb', line 227 def args @args end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
227 228 229 |
# File 'lib/cloudtasker/middleware/chain.rb', line 227 def klass @klass end |
Instance Method Details
#make_new ⇒ Any
Return an instantiated middleware.
245 246 247 |
# File 'lib/cloudtasker/middleware/chain.rb', line 245 def make_new @klass.new(*@args) end |