Class: Mongoid::Relations::Embedded::Atomic::PushAll

Inherits:
Operation show all
Defined in:
lib/mongoid/relations/embedded/atomic/push_all.rb

Instance Attribute Summary

Attributes inherited from Operation

#documents, #options, #path, #selector

Instance Method Summary collapse

Methods inherited from Operation

#consume, #consumed?, #execute

Instance Method Details

#operationsHash

Get the merged operations for the single atomic set.

Examples:

Get the operations

set.operations

Returns:

  • (Hash)

    The set operations.

Since:

  • 2.0.0



17
18
19
# File 'lib/mongoid/relations/embedded/atomic/push_all.rb', line 17

def operations
  { "$pushAll" => { path => documents } }
end