lib/mongo/operation/result.rb
def successful?
        return true if !acknowledged?
        if first_document.has_key?(OK)
          ok? && parser.message.empty?
        else
          !query_failure? && parser.message.empty?
        end
      end
# If the result was a command then determine if it was considered a
# success.
#
# @note If the write was unacknowledged, then this will always return
#   true.
#
# @example Was the command successful?
#   result.successful?
#
# @return [ true, false ] If the command was successful.
#
# @since 2.0.0
# @api public
If the result was a command then determine if it was considered a
success.
If the result was a command then determine if it was considered a success .
def successful?
        return true if !acknowledged?
        if first_document.has_key?(OK)
          ok? && parser.message.empty?
        else
          !query_failure? && parser.message.empty?
        end
      end
def successful? return true if ! acknowledged? if first_document . has_key? ( OK ) ok? && parser . message . empty? else ! query_failure? && parser . message . empty? end end
If the result was a command then determine if it was considered a
success.
If the result was a command then determine if it was considered a success .
If the command was successful.
If the command was successful .
 true, false 
note
If the write was unacknowledged, then this will always return true.
If the write was unacknowledged then this will always return true .
example
Was the command successful.
Was the command successful .
since
None
api
None