Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service::Concern::InstanceMethods

Includes:
ConvenientService::Support::Delegate
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConvenientService::Support::Delegate::ClassMethodsForForwardable

#delegate

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



27
28
29
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 27

def klass
  @klass
end

Instance Method Details

#==(other) ⇒ Boolean?

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)


55
56
57
58
59
60
61
62
63
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 55

def ==(other)
  casted = cast(other)

  return unless casted

  return false if klass != casted.klass

  true
end

#has_defined_method?(method) ⇒ Boolean

Parameters:

  • method (String, Symbol)

Returns:

  • (Boolean)


47
48
49
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 47

def has_defined_method?(method)
  Utils::Method.defined?(method, klass, private: true)
end

#initialize(klass) ⇒ Object

Parameters:

  • klass (Class)


32
33
34
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 32

def initialize(klass)
  @klass = klass
end

#mutexMutex

Returns:

  • (Mutex)


39
40
41
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 39

def mutex
  klass.__convenient_service_config__.mutex
end

#resultConvenientService::Service::Plugins::HasJSendResult::Entities::Result



16
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 16

delegate :result, to: :klass

#step_classConvenientService::Service::Plugins::CanHaveSteps::Entities::Step



21
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 21

delegate :step_class, to: :klass