Class: Undo::Storage::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/undo/storage/adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Adapter

Returns a new instance of Adapter.



6
7
8
9
# File 'lib/undo/storage/adapter.rb', line 6

def initialize(options = {})
  @options = options
  @container = options.fetch(:container) { Undo::Container::Json.new }
end

Instance Method Details

#delete(uuid, options = {}) ⇒ Object



13
# File 'lib/undo/storage/adapter.rb', line 13

def delete(uuid, options = {}) end

#fetch(uuid, options = {}) ⇒ Object



12
# File 'lib/undo/storage/adapter.rb', line 12

def fetch(uuid, options = {}) end

#store(uuid, object, options = {}) ⇒ Object



11
# File 'lib/undo/storage/adapter.rb', line 11

def store(uuid, object, options = {}) end