class Undo::Storage::Adapter

Attributes

container[R]
options[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/undo/storage/adapter.rb, line 6
def initialize(options = {})
  @options = options
  @container = options.fetch(:container) { Undo::Container::Json.new }
end

Public Instance Methods

delete(uuid, options = {}) click to toggle source
# File lib/undo/storage/adapter.rb, line 13
def delete(uuid, options = {}) end
fetch(uuid, options = {}) click to toggle source
# File lib/undo/storage/adapter.rb, line 12
def fetch(uuid, options = {}) end
store(uuid, object, options = {}) click to toggle source
# File lib/undo/storage/adapter.rb, line 11
def store(uuid, object, options = {}) end

Private Instance Methods

adapter_options(local_options) click to toggle source
# File lib/undo/storage/adapter.rb, line 26
def adapter_options(local_options)
  options.merge local_options
end
pack(object) click to toggle source
# File lib/undo/storage/adapter.rb, line 18
def pack(object)
  container.pack object
end
unpack(data) click to toggle source
# File lib/undo/storage/adapter.rb, line 22
def unpack(data)
  container.unpack data
end