Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Mongoid::Relations::Binding

Superclass for all objects that bind relations together.

Attributes

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

Public Class Methods

new(base, target, metadata) click to toggle source

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

# File lib/mongoid/relations/binding.rb, line 20
def initialize(base, target, metadata)
  @base, @target, @metadata = base, target, metadata
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.