Sha256: f33aac35a4293a1e9ba10bb93e193ab88a4700804bfbcce721880d30cab4fee4
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
require "undo/container/json" module Undo module Storage class Adapter def initialize(options = {}) @options = options @container = options.fetch(:container) { Undo::Container::Json.new } end def store(uuid, object, options = {}) end def fetch(uuid, options = {}) end def delete(uuid, options = {}) end private attr_reader :options, :container def pack(object) container.pack object end def unpack(data) container.unpack data end def adapter_options(local_options) options.merge local_options end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-1.0.0 | lib/undo/storage/adapter.rb |