Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethodFactory
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethodFactory
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Can be any type.
-
#other ⇒ Object
readonly
Returns the value of attribute other.
Instance Method Summary collapse
- #call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factries::Base?
-
#initialize(other:) ⇒ CastMethodFactory
constructor
A new instance of CastMethodFactory.
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(other:) ⇒ CastMethodFactory
Returns a new instance of CastMethodFactory.
20 21 22 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb', line 20 def initialize(other:) @other = other end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns Can be any type.
15 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb', line 15 attr_reader :other |
#other ⇒ Object (readonly)
Returns the value of attribute other.
15 16 17 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb', line 15 def other @other end |
Instance Method Details
#call ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factries::Base?
27 28 29 30 31 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb', line 27 def call return unless factory_class factory_class.new(**factory_kwargs) end |