Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Callers::Base

Inherits:
Object
  • Object
show all
Includes:
ConvenientService::Support::AbstractMethod, ConvenientService::Support::Copyable
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb

Direct Known Subclasses

Alias, Proc, Raw, Usual

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConvenientService::Support::Copyable

#copy

Methods included from ConvenientService::Support::AbstractMethod

abstract_method

Constructor Details

#initialize(object) ⇒ void

Parameters:

  • object (Object)

    Can be any type.



38
39
40
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 38

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject (readonly)



22
23
24
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 22

def object
  @object
end

Instance Method Details

#==(other) ⇒ Boolean?

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)


46
47
48
49
50
51
52
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 46

def ==(other)
  return unless other.instance_of?(self.class)

  return false if object != other.object

  true
end

#calculate_valueObject

Returns Can be any type.

Returns:

  • (Object)

    Can be any type.



27
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 27

abstract_method :calculate_value

#define_output_in_container!Boolean

Returns:

  • (Boolean)


32
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 32

abstract_method :define_output_in_container!

#to_argsArray<Object>

Returns:

  • (Array<Object>)


57
58
59
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 57

def to_args
  to_arguments.args
end

#to_argumentsConveninentService::Support::Arguments

Returns:

  • (ConveninentService::Support::Arguments)


64
65
66
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb', line 64

def to_arguments
  Support::Arguments.new(object)
end