Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeMethodStep::Concern Private

Includes:
Core::Entities::Config::Entities::Concerns::Usual
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/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.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods included from Core::Entities::Config::Entities::Concerns::Usual

included

Instance Method Details

#method ⇒ 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.

Returns:

  • (Symbol, nil)

Since:

  • 1.0.0



23
24
25
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 23

def method
  action if method_step?
end

#method_result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result

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.



45
46
47
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 45

def method_result
  Commands::CalculateMethodResult.call(step: self)
end

#method_step? ⇒ 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.

Returns:

  • (Boolean)

Since:

  • 1.0.0



30
31
32
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 30

def method_step?
  action.instance_of?(Symbol)
end

#result_step? ⇒ 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.

Returns:

  • (Boolean)

Since:

  • 1.0.0



37
38
39
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb', line 37

def result_step?
  method_step? && method == :result
end