Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Commands::CastParams Private
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Commands::CastParams
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #original_params ⇒ Object readonly private
Instance Method Summary collapse
-
#action ⇒ Object
private
Can be any type.
- #call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Structs::Params private
- #container ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service private
- #extra_kwargs ⇒ Hash{Symbol => Object} private
- #index ⇒ Integer private
- #initialize(original_params:) ⇒ void constructor private
- #inputs ⇒ Array<ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method> private
- #organizer ⇒ ConvenientService::Service? private
- #outputs ⇒ Array<ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method> private
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(original_params:) ⇒ 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.
26 27 28 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 26 def initialize(original_params:) @original_params = original_params end |
Instance Attribute Details
#original_params ⇒ 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.
20 21 22 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 20 def original_params @original_params end |
Instance Method Details
#action ⇒ Object
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 Can be any type.
48 49 50 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 48 def action @action ||= original_params.action end |
#call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Structs::Params
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.
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 33 def call Structs::Params.new( action: action, inputs: inputs, outputs: outputs, index: index, container: container, organizer: organizer, extra_kwargs: extra_kwargs ) end |
#container ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service
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.
76 77 78 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 76 def container @container ||= Entities::Service.cast!(original_params.container) end |
#extra_kwargs ⇒ Hash{Symbol => Object}
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.
90 91 92 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 90 def extra_kwargs @extra_kwargs ||= original_params.extra_kwargs end |
#index ⇒ Integer
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.
69 70 71 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 69 def index @index ||= original_params.index end |
#inputs ⇒ Array<ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method>
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.
55 56 57 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 55 def inputs @inputs ||= cast_inputs end |
#organizer ⇒ ConvenientService::Service?
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.
83 84 85 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 83 def organizer Utils.memoize_including_falsy_values(self, :@organizer) { original_params.organizer } end |
#outputs ⇒ Array<ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method>
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.
62 63 64 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 62 def outputs @outputs ||= cast_outputs end |