Class Mongoid::Relations::Binding
In: lib/mongoid/relations/binding.rb
Parent: Object

Superclass for all objects that bind relations together.

Methods

new  

Included Modules

Threaded::Lifecycle

Attributes

base  [R] 
metadata  [R] 
target  [R] 

Public Class methods

Create the new binding.

@example Initialize a binding.

  Binding.new(base, target, metadata)

@param [ Document ] base The base of the binding. @param [ Document, Array<Document> ] target The target of the binding. @param [ Metadata ] metadata The relation‘s metadata.

@since 2.0.0.rc.1

[Validate]