Class: ConvenientService::Common::Plugins::CanHaveCallbacks::Entities::Type
- Inherits:
-
Object
- Object
- ConvenientService::Common::Plugins::CanHaveCallbacks::Entities::Type
show all
- 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
Defined Under Namespace
Modules: Concern
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Concern
after, around, before, callback, callbacks
#delegate
cast!
abstract_method
Constructor Details
#initialize(value:) ⇒ void
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
Returns the value of attribute value.
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?
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?
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
79
80
81
|
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb', line 79
def hash
[self.class, value].hash
end
|