Sha256: 0c7a4004409c8579fcea438a3001cd301e4066ac3ae2b0db92f58e2e5409a9c0
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
# encoding: utf-8 module Mongoid # :nodoc: module Relations #:nodoc: # Superclass for all objects that bind relations together. class Binding attr_reader :base, :target, :metadata # 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 def initialize(base, target, metadata) @base, @target, @metadata = base, target, metadata end end end end
Version data entries
4 entries across 4 versions & 1 rubygems