Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::HasResult::Middleware

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/middleware.rb

Instance Method Summary collapse

Instance Method Details

#nextConvenientService::Service::Plugins::HasJSendResult::Entities::Result



30
31
32
33
34
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/middleware.rb', line 30

def next(...)
  result = chain.next(...)

  result.copy(overrides: {kwargs: {data: extract_data(result), step: step, service: step.organizer, original_service: result.original_service}})
end