Class: Sbmt::Outbox::Middleware::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/sbmt/outbox/middleware/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(middlewares) ⇒ Builder

Returns a new instance of Builder.



7
8
9
# File 'lib/sbmt/outbox/middleware/builder.rb', line 7

def initialize(middlewares)
  middlewares.each { |middleware| stack << middleware }
end

Instance Method Details

#callObject



11
12
13
# File 'lib/sbmt/outbox/middleware/builder.rb', line 11

def call(...)
  Runner.new(stack.dup).call(...)
end