Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeMethodStep::Commands::CalculateMethodResult
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeMethodStep::Commands::CalculateMethodResult
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/commands/calculate_method_result.rb
Instance Attribute Summary collapse
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
- #call ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
- #initialize(step:) ⇒ void constructor
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(step:) ⇒ void
28 29 30 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/commands/calculate_method_result.rb', line 28 def initialize(step:) @step = step end |
Instance Attribute Details
#step ⇒ Object (readonly)
Returns the value of attribute step.
22 23 24 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/commands/calculate_method_result.rb', line 22 def step @step end |
Instance Method Details
#call ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
36 37 38 39 40 41 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/commands/calculate_method_result.rb', line 36 def call ::ConvenientService.raise Exceptions::StepIsNotMethodStep.new(step: step) unless step.method_step? ::ConvenientService.raise Exceptions::MethodForStepIsNotDefined.new(step: step) unless own_method call_method(own_method) end |