Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Key
- Inherits:
-
Object
- Object
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Key
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Boolean?
- #initialize(value) ⇒ void constructor
- #to_args ⇒ Array<Object>
- #to_arguments ⇒ ConveninentService::Support::Arguments
- #to_s ⇒ String
- #to_sym ⇒ Symbol
Methods included from ConvenientService::Support::Delegate::ClassMethodsForForwardable
Methods included from ConvenientService::Support::Copyable
Constructor Details
#initialize(value) ⇒ void
34 35 36 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 34 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18 19 20 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 18 def value @value end |
Instance Method Details
#==(other) ⇒ Boolean?
42 43 44 45 46 47 48 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 42 def ==(other) return unless other.instance_of?(self.class) return false if value != other.value true end |
#to_args ⇒ Array<Object>
53 54 55 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 53 def to_args to_arguments.args end |
#to_arguments ⇒ ConveninentService::Support::Arguments
60 61 62 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 60 def to_arguments Support::Arguments.new(value) end |
#to_s ⇒ String
23 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 23 delegate :to_s, :to_sym, to: :value |
#to_sym ⇒ Symbol
28 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb', line 28 delegate :to_sym, to: :value |