Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanHaveFallbacks::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanHaveFallbacks::Middleware
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/middleware.rb', line 22 def next(...) result = chain.next(...) case result.status.to_sym when :success result when :failure fallback_failure_step? ? fallback_failure_result(...) : result when :error fallback_error_step? ? fallback_error_result(...) : result end end |