Class: Delta::Identifier::Null
- Inherits:
-
Delta::Identifier
- Object
- Delta::Identifier
- Delta::Identifier::Null
- Defined in:
- lib/delta/identifier.rb
Instance Method Summary collapse
- #identities(collection) ⇒ Object
- #identity(object) ⇒ Object
-
#initialize ⇒ Null
constructor
A new instance of Null.
Constructor Details
#initialize ⇒ Null
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 |