Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Name Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#delegate

Methods included from ConvenientService::Support::Concern

included

Methods included from ConvenientService::Support::Copyable

#copy

Constructor Details

#initialize(value) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • value (Symbol)

Since:

  • 1.0.0



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

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



23
24
25
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb', line 23

def value
  @value
end

Instance Method Details

#==(other) ⇒ Boolean?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)

Since:

  • 1.0.0



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

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

  return false if value != other.value

  true
end

#to_argsArray<Object>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Array<Object>)

Since:

  • 1.0.0



58
59
60
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb', line 58

def to_args
  to_arguments.args
end

#to_argumentsConveninentService::Support::Arguments

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (ConveninentService::Support::Arguments)

Since:

  • 1.0.0



65
66
67
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb', line 65

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

#to_sString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)

Since:

  • 1.0.0



28
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb', line 28

delegate :to_s, :to_sym, to: :value

#to_symSymbol

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Symbol)

Since:

  • 1.0.0



33
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb', line 33

delegate :to_sym, to: :value