Class: Delta::Identifier::Null

Inherits:
Delta::Identifier show all
Defined in:
lib/delta/identifier.rb

Instance Method Summary collapse

Constructor Details

#initializeNull

Returns a new instance of Null.



25
26
# File 'lib/delta/identifier.rb', line 25

def initialize
end

Instance Method Details

#identities(collection) ⇒ Object



32
33
34
# File 'lib/delta/identifier.rb', line 32

def identities(collection)
  cache(collection) { { id: collection.pluck(:id) } }
end

#identity(object) ⇒ Object



28
29
30
# File 'lib/delta/identifier.rb', line 28

def identity(object)
  object
end