Module: Persistence::Destroy

Included in:
Persistence
Defined in:
lib/persistence/destroy.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) destroy(id)

Destroys resource with given ID.

Parameters:

  • id (BSON::ObjectID, string)

    Resource ID



10
11
12
# File 'lib/persistence/destroy.rb', line 10

def destroy(id)
  self.adapter.destroy_resource(id)
end