Class: Undo::Storage::Adapter
- Inherits:
-
Object
- Object
- Undo::Storage::Adapter
- Defined in:
- lib/undo/storage/adapter.rb
Instance Method Summary collapse
- #delete(uuid, options = {}) ⇒ Object
- #fetch(uuid, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Adapter
constructor
A new instance of Adapter.
- #store(uuid, object, options = {}) ⇒ Object
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( = {}) = @container = .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, = {}) end |
#fetch(uuid, options = {}) ⇒ Object
12 |
# File 'lib/undo/storage/adapter.rb', line 12 def fetch(uuid, = {}) end |
#store(uuid, object, options = {}) ⇒ Object
11 |
# File 'lib/undo/storage/adapter.rb', line 11 def store(uuid, object, = {}) end |