Class: ConvenientService::Common::Plugins::CanHaveCallbacks::Entities::Type Private
- Inherits:
-
Object
- Object
- ConvenientService::Common::Plugins::CanHaveCallbacks::Entities::Type
- Includes:
- Concern, Support::Castable, Support::Delegate
- Defined in:
- lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb,
lib/convenient_service/common/plugins/can_have_callbacks/entities/type/concern.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.
Defined Under Namespace
Modules: Concern
Instance Attribute Summary collapse
- #value ⇒ Object readonly private
Instance Method Summary collapse
- #==(other) ⇒ Boolean? private
- #eql?(other) ⇒ Boolean? private
- #hash ⇒ Integer private
- #initialize(value:) ⇒ void constructor private
Methods included from Concern
after, around, before, callback, callbacks
Methods included from Support::Concern
Methods included from Support::Delegate::ClassMethodsForForwardable
Methods included from Support::Castable
Methods included from Support::AbstractMethod
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.
31 32 33 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb', line 31 def initialize(value:) @value = value end |
Instance Attribute Details
#value ⇒ Object (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.
25 26 27 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb', line 25 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.
39 40 41 42 43 44 45 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb', line 39 def ==(other) return unless other.instance_of?(self.class) return false if value != other.value true end |
#eql?(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.
64 65 66 67 68 69 70 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb', line 64 def eql?(other) return unless other.instance_of?(self.class) return false if value != other.value true end |
#hash ⇒ Integer
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.
79 80 81 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb', line 79 def hash [self.class, value].hash end |