Class: Mongoid::Atomic::Paths::Embedded::One
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Instance Chain:
|
|
| Inherits: | Object |
| Defined in: | lib/mongoid/atomic/paths/embedded/one.rb |
Overview
This class encapsulates behavior for locating and updating documents that are defined as an embedded 1-1.
Class Method Summary
-
.new(document) ⇒ One
constructor
Create the new path utility.
Instance Attribute Summary
::Mongoid::Atomic::Paths::Embedded - Included
Instance Method Summary
-
#position ⇒ String
Get the position of the document in the hierarchy.
::Mongoid::Atomic::Paths::Embedded - Included
| #path | Get the path to the document in the hierarchy. |
Constructor Details
.new(document) ⇒ One
Create the new path utility.
Instance Method Details
#position ⇒ String
Get the position of the document in the hierarchy. This will include indexes of 1-n embedded associations that may sit above the embedded one.