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)


27
28
29
30
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 27

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



15
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.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.rb', line 15

def other
  @other
end

Instance Method Details

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



39
40
41
42
43
44
45
46
47
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb', line 39

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