Method: Mongo::Operation::Specifiable#update

Defined in:
lib/mongo/operation/shared/specifiable.rb

#updateHash

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.

The update document from the spec.

Examples:

Get the update document.


Returns:

  • (Hash)

    The update document.

Since:

  • 2.0.0



427
428
429
# File 'lib/mongo/operation/shared/specifiable.rb', line 427

def update
  spec[UPDATE]
end