class Mongo::Operation::Delete::Result

Defines custom behavior of results for a delete.

@since 2.0.0

Public Instance Methods

bulk_result() click to toggle source
# File lib/mongo/operation/delete/result.rb, line 36
def bulk_result
  BulkResult.new(@replies)
end
deleted_count() click to toggle source

Get the number of documents deleted.

@example Get the deleted count.

result.deleted_count

@return [ Integer ] The deleted count.

@since 2.0.0

# File lib/mongo/operation/delete/result.rb, line 32
def deleted_count
  n
end