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
- #strict ⇒ Boolean 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.
49 50 51 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 49 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 44 |
# 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, strict: strict, 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.
84 85 86 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 84 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.
98 99 100 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 98 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.
77 78 79 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 77 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.
56 57 58 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 56 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.
91 92 93 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 91 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.
63 64 65 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 63 def outputs @outputs ||= cast_outputs end |
#strict ⇒ 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.
70 71 72 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb', line 70 def strict Utils.memoize_including_falsy_values(self, :@strict) { Utils.to_bool(original_params.strict) } end |