Class: RailsArchiver::Archiver::IDHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/rails-archiver/archiver.rb

Overview

Hash which determines equality solely based on the id key.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



13
14
15
# File 'lib/rails-archiver/archiver.rb', line 13

def ==(other)
  self[:id] == other[:id]
end