Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanHaveFallbacks::Concern

Includes:
ConvenientService::Support::Concern
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb

Instance Method Summary collapse

Instance Method Details

#fallback_error_step?Bool

Returns:

  • (Bool)


32
33
34
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb', line 32

def fallback_error_step?
  Utils::Array.wrap(params.extra_kwargs[:fallback]).include?(:error)
end

#fallback_failure_step?Bool

Returns:

  • (Bool)


25
26
27
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb', line 25

def fallback_failure_step?
  Utils::Array.wrap(params.extra_kwargs[:fallback]).include?(:failure)
end

#fallback_step?Bool

Returns:

  • (Bool)


39
40
41
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb', line 39

def fallback_step?
  fallback_true_step? || fallback_failure_step? || fallback_error_step?
end

#fallback_true_step?Bool

Returns:

  • (Bool)


18
19
20
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb', line 18

def fallback_true_step?
  params.extra_kwargs[:fallback] == true
end