Module: ConvenientService::Service::Plugins::CanHaveFallbacks::Concern
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb
Class Method Summary collapse
-
.fallback_error_result ⇒ Object
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when#fallback_result
is overridden. -
.fallback_failure_result ⇒ Object
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when#fallback_result
is overridden. -
.fallback_result ⇒ Object
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when#fallback_result
is overridden.
Instance Method Summary collapse
-
#fallback_error_result ⇒ Object
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when overridden. -
#fallback_failure_result ⇒ Object
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when overridden. -
#fallback_result ⇒ Object
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when overridden.
Class Method Details
.fallback_error_result ⇒ Object
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when #fallback_result
is overridden.
106 107 108 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 106 def fallback_error_result(...) new(...).fallback_error_result end |
.fallback_failure_result ⇒ Object
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when #fallback_result
is overridden.
45 46 47 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 45 def fallback_failure_result(...) new(...).fallback_failure_result end |
.fallback_result ⇒ Object
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when #fallback_result
is overridden.
115 116 117 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 115 def fallback_result(...) new(...).fallback_result end |
Instance Method Details
#fallback_error_result ⇒ Object
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when overridden.
25 26 27 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 25 def fallback_error_result ::ConvenientService.raise Exceptions::FallbackResultIsNotOverridden.new(service: self, status: :error) end |
#fallback_failure_result ⇒ Object
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when overridden.
16 17 18 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 16 def fallback_failure_result ::ConvenientService.raise Exceptions::FallbackResultIsNotOverridden.new(service: self, status: :failure) end |
#fallback_result ⇒ Object
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
when overridden.
34 35 36 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 34 def fallback_result ::ConvenientService.raise Exceptions::FallbackResultIsNotOverridden.new(service: self, status: nil) end |