Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethodFactory

Inherits:
ConvenientService::Support::Command show all
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ConvenientService::Support::Command

[], call

Constructor Details

#initialize(other:) ⇒ CastMethodFactory

Returns a new instance of CastMethodFactory.

Parameters:

  • other (Object)

    Can be any type.



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

#optionsObject (readonly)

Returns Can be any type.

Returns:

  • (Object)

    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

#otherObject (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

#callConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factries::Base?

Returns:

  • (ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factries::Base, nil)


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