Class: NatsWork::Middleware::Entry
- Inherits:
-
Object
- Object
- NatsWork::Middleware::Entry
- Defined in:
- lib/natswork/middleware.rb
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
- #build ⇒ Object
-
#initialize(klass, args = []) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(klass, args = []) ⇒ Entry
Returns a new instance of Entry.
10 11 12 13 |
# File 'lib/natswork/middleware.rb', line 10 def initialize(klass, args = []) @klass = klass @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
8 9 10 |
# File 'lib/natswork/middleware.rb', line 8 def args @args end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
8 9 10 |
# File 'lib/natswork/middleware.rb', line 8 def klass @klass end |
Instance Method Details
#build ⇒ Object
15 16 17 |
# File 'lib/natswork/middleware.rb', line 15 def build @klass.new(*@args) end |