Class: GOM::Storage::CouchDB::Remover

Inherits:
Object
  • Object
show all
Defined in:
lib/gom/storage/couchdb/remover.rb

Overview

Removes the CouchDB document with the given id.

Instance Method Summary collapse

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

#performObject



9
10
11
12
# File 'lib/gom/storage/couchdb/remover.rb', line 9

def perform
  initialize_document
  destroy_document
end