Module: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::CanBeOwnResult::Concern
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result/concern.rb
Instance Method Summary collapse
-
#foreign_result_for?(service) ⇒ Boolean
private
Checks whether a result is a foreign result for a service instance.
-
#own_result_for?(service) ⇒ Boolean
private
Checks whether a result is an own result for a service instance.
Instance Method Details
#foreign_result_for?(service) ⇒ Boolean
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.
Checks whether a result is a foreign result for a service instance. Opposite to own result.
130 131 132 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result/concern.rb', line 130 def foreign_result_for?(service) !own_result_for?(service) end |
#own_result_for?(service) ⇒ Boolean
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.
Checks whether a result is an own result for a service instance.
If the result is own then it is one of success
, failure
, error
or step result.
Otherwise it is foreign for that particular service instance.
117 118 119 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result/concern.rb', line 117 def own_result_for?(service) self.service.equal?(service) end |