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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ConvenientService::Support::Command

[], call

Constructor Details

#initialize(other:, options:) ⇒ CastMethod

Returns a new instance of CastMethod.

Parameters:

  • other (Object)

    Can be any type.

  • options (Hash)


32
33
34
35
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 32

def initialize(other:, options:)
  @other = other
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



20
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 20

attr_reader :other

#otherObject (readonly)

Returns the value of attribute other.



20
21
22
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 20

def other
  @other
end

Instance Method Details

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



44
45
46
47
48
49
50
51
52
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 44

def call
  return unless factory
  return unless key
  return unless name
  return unless caller
  return unless direction

  Method.new(key: key, name: name, caller: caller, direction: direction)
end