Class: GOM::Storage::CouchDB::Remover
- Inherits:
-
Object
- Object
- GOM::Storage::CouchDB::Remover
- Defined in:
- lib/gom/storage/couchdb/remover.rb
Overview
Removes the CouchDB document with the given id.
Instance Method Summary collapse
-
#initialize(database, id, revisions) ⇒ Remover
constructor
A new instance of Remover.
- #perform ⇒ Object
Constructor Details
#initialize(database, id, revisions) ⇒ Remover
Returns a new instance of Remover.
5 6 7 |
# File 'lib/gom/storage/couchdb/remover.rb', line 5 def initialize(database, id, revisions) @database, @id, @revisions = database, id, revisions end |
Instance Method Details
#perform ⇒ Object
9 10 11 12 |
# File 'lib/gom/storage/couchdb/remover.rb', line 9 def perform initialize_document destroy_document end |