Sha256: bfadabfc9f8f29ad8ec78864f4596c2c8145d0a3e88eae01eb54ac181d7dff23
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true class KeyVortex class Adapter class Memory < KeyVortex::Adapter def initialize(items) super() @items = items end def save(record) @items[record.id] = record end def find(id) @items[id] end def remove(key) @items.delete(key) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
key-vortex-0.1.2 | lib/key_vortex/adapter/memory.rb |