Class: ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::Base
- Inherits:
-
Object
- Object
- ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::Base
- Defined in:
- lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #modifiers ⇒ Array<Object>
- #object ⇒ Object readonly private
- #organizer ⇒ Object readonly private
- #propagated_result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result?
Instance Method Summary collapse
- #default_data_key ⇒ Symbol? private
- #evaluate_by ⇒ Symbol, ... private
- #initialize(object:, organizer:, propagated_result:, modifiers: []) ⇒ void constructor private
- #result(data_key: default_data_key, evaluate_by: default_evaluate_by) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
Methods included from ConvenientService::Support::AbstractMethod
Constructor Details
#initialize(object:, organizer:, propagated_result:, modifiers: []) ⇒ void
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.
72 73 74 75 76 77 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 72 def initialize(object:, organizer:, propagated_result:, modifiers: []) @object = object @organizer = organizer @propagated_result = propagated_result @modifiers = modifiers end |
Instance Attribute Details
#modifiers ⇒ Array<Object>
47 48 49 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 47 def modifiers @modifiers end |
#object ⇒ Object (readonly)
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.
23 24 25 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 23 def object @object end |
#organizer ⇒ Object (readonly)
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.
31 32 33 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 31 def organizer @organizer end |
#propagated_result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result?
39 40 41 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 39 def propagated_result @propagated_result end |
Instance Method Details
#default_data_key ⇒ Symbol?
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.
54 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 54 abstract_method :default_data_key |
#evaluate_by ⇒ Symbol, ...
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.
61 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 61 abstract_method :evaluate_by |
#result(data_key: default_data_key, evaluate_by: default_evaluate_by) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
84 85 86 87 88 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb', line 84 def result(data_key: default_data_key, evaluate_by: default_evaluate_by) with_propagated_result_returning(evaluate_by) do |values| data_key ? success(data_key => values) : success end end |