Class: ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::ObjectOrNil
- Inherits:
-
Object
- Object
- Base
- Object
- ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::ObjectOrNil
- Defined in:
- lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/object_or_nil.rb
Instance Attribute Summary
Attributes inherited from Base
#object, #organizer, #propagated_result
Instance Method Summary collapse
Methods inherited from Object
#default_data_key, #default_evaluate_by
Methods inherited from Base
#==, #default_data_key, #evaluate_by, #initialize
Methods included from ConvenientService::Support::AbstractMethod
Constructor Details
This class inherits a constructor from ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Entities::StepAwareEnumerables::Object
Instance Method Details
#result(data_key: default_data_key, evaluate_by: default_evaluate_by) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
27 28 29 30 31 |
# File 'lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/object_or_nil.rb', line 27 def result(data_key: default_data_key, evaluate_by: default_evaluate_by) with_propagated_result_returning(evaluate_by) do |object_or_nil| object_or_nil ? success(data_key => object_or_nil) : failure end end |