Module: ConvenientService::Service::Plugins::CanHaveFallbacks::Concern Private
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
-
.fallback_error_result ⇒ Object
private
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Resultwhen#fallback_resultis overridden. -
.fallback_failure_result ⇒ Object
private
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Resultwhen#fallback_resultis overridden. -
.fallback_result ⇒ Object
private
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Resultwhen#fallback_resultis overridden.
Instance Method Summary collapse
-
#fallback_error_result ⇒ Object
private
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Resultwhen overridden. -
#fallback_failure_result ⇒ Object
private
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Resultwhen overridden. -
#fallback_result ⇒ Object
private
Returns
ConvenientService::Service::Plugins::HasJSendResult::Entities::Resultwhen overridden.
Methods included from ConvenientService::Support::Concern
Class Method Details
.fallback_error_result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result when #fallback_result is overridden.
111 112 113 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 111 def fallback_error_result(...) new(...).fallback_error_result end |
.fallback_failure_result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result when #fallback_result is overridden.
50 51 52 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 50 def fallback_failure_result(...) new(...).fallback_failure_result end |
.fallback_result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result when #fallback_result is overridden.
120 121 122 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 120 def fallback_result(...) new(...).fallback_result end |
Instance Method Details
#fallback_error_result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result when overridden.
30 31 32 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 30 def fallback_error_result ::ConvenientService.raise Exceptions::FallbackResultIsNotOverridden.new(service: self, status: :error) end |
#fallback_failure_result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result when overridden.
21 22 23 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 21 def fallback_failure_result ::ConvenientService.raise Exceptions::FallbackResultIsNotOverridden.new(service: self, status: :failure) end |
#fallback_result ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns ConvenientService::Service::Plugins::HasJSendResult::Entities::Result when overridden.
39 40 41 |
# File 'lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb', line 39 def fallback_result ::ConvenientService.raise Exceptions::FallbackResultIsNotOverridden.new(service: self, status: nil) end |