Class: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Middleware

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_connected_steps/middleware.rb

Instance Method Summary collapse

Instance Method Details

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



18
19
20
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/middleware.rb', line 18

def next(...)
  service.steps.any? ? service.steps_result(...) : service.regular_result(...)
end