Module: INatGet::Data::Model::Identified

Included in:
Identification, Observation, Photo, Place, Project, Sound, Taxon, User
Defined in:
lib/inat-get/data/models/base.rb

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


57
58
59
60
# File 'lib/inat-get/data/models/base.rb', line 57

def eql? other
  return false unless other.is_a?(self.class)
  self.id == other.id
end

#hashObject



62
63
64
# File 'lib/inat-get/data/models/base.rb', line 62

def hash
  [Identified, self.class, self.id].hash
end