Module: Mongo::Operation::Idable Private

Included in:
Mongo::Operation::Insert::OpMsg
Defined in:
lib/mongo/operation/shared/idable.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Shared behavior of operations that require its documents to each have an id.

Since:

  • 2.5.2

Instance Method Summary collapse

Instance Method Details

#documentsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.5.2



27
28
29
# File 'lib/mongo/operation/shared/idable.rb', line 27

def documents
  @documents ||= ensure_ids(super)
end