Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeServiceStep::Concern
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/concern.rb
Instance Method Summary collapse
- #service_class ⇒ Class<ConvenientService::Service>
- #service_result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
- #service_step? ⇒ Boolean
Instance Method Details
#service_class ⇒ Class<ConvenientService::Service>
18 19 20 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/concern.rb', line 18 def service_class action if service_step? end |
#service_result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
36 37 38 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/concern.rb', line 36 def service_result Commands::CalculateServiceResult.call(step: self) end |
#service_step? ⇒ Boolean
25 26 27 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/concern.rb', line 25 def service_step? action.instance_of?(Class) end |