Class: Mongo::Operation::Delete::Result

Inherits:
Operation::Result
  • Object
show all
Defined in:
lib/mongo/operation/delete/result.rb

Overview

Defines custom behavior of results for a delete.

Since:

  • 2.0.0

Instance Method Summary collapse

Instance Method Details

#bulk_resultObject

Since:

  • 2.0.0



39
40
41
# File 'lib/mongo/operation/delete/result.rb', line 39

def bulk_result
  BulkResult.new(@replies, connection_description)
end

#deleted_countInteger

Get the number of documents deleted.

Examples:

Get the deleted count.

result.deleted_count

Returns:

  • (Integer)

    The deleted count.

Since:

  • 2.0.0



34
35
36
# File 'lib/mongo/operation/delete/result.rb', line 34

def deleted_count
  n
end