Module: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::CanHaveFallbacks::Concern

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

Instance Method Summary collapse

Instance Method Details

#fallback_error_result?Boolean

Returns:

  • (Boolean)


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

def fallback_error_result?
  Utils.to_bool(extra_kwargs[:fallback_error_result])
end

#fallback_failure_result?Boolean

Returns:

  • (Boolean)


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

def fallback_failure_result?
  Utils.to_bool(extra_kwargs[:fallback_failure_result])
end

#fallback_result?Boolean

Returns:

  • (Boolean)


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

def fallback_result?
  fallback_failure_result? || fallback_error_result?
end