Class: IntercomExport::Reference
- Inherits:
-
Object
- Object
- IntercomExport::Reference
- Defined in:
- lib/intercom_export/reference.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(value) ⇒ Reference
constructor
A new instance of Reference.
Constructor Details
#initialize(value) ⇒ Reference
Returns a new instance of Reference.
3 4 5 |
# File 'lib/intercom_export/reference.rb', line 3 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
16 17 18 |
# File 'lib/intercom_export/reference.rb', line 16 def value @value end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
7 8 9 |
# File 'lib/intercom_export/reference.rb', line 7 def ==(other) other.is_a?(self.class) && value == other.value end |
#hash ⇒ Object
12 13 14 |
# File 'lib/intercom_export/reference.rb', line 12 def hash self.value.hash end |