Class: IntercomExport::Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/intercom_export/reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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

#hashObject



12
13
14
# File 'lib/intercom_export/reference.rb', line 12

def hash
  self.value.hash
end