Class Mongoid::Atomic::Paths::Embedded::Many
In: lib/mongoid/atomic/paths/embedded/many.rb
Parent: Object

This class encapsulates behaviour for locating and updating documents that are defined as an embedded 1-n.

Methods

new   position  

Included Modules

Embedded

Public Class methods

Create the new path utility.

@example Create the path util.

  Many.new(document)

@param [ Document ] document The document to generate the paths for.

@since 2.1.0

Public Instance methods

Get the position of the document in the hierarchy. This will include indexes of 1-n embedded relations that may sit above the embedded many.

@example Get the position.

  many.position

@return [ String ] The position of the document.

@since 2.1.0

[Validate]