Class: Mongoid::Relations::Binding
- Defined in:
- lib/mongoid/relations/binding.rb
Overview
Superclass for all objects that bind relations together.
Direct Known Subclasses
Mongoid::Relations::Bindings::Embedded::In, Mongoid::Relations::Bindings::Embedded::Many, Mongoid::Relations::Bindings::Embedded::One, Mongoid::Relations::Bindings::Referenced::In, Mongoid::Relations::Bindings::Referenced::Many, Mongoid::Relations::Bindings::Referenced::ManyToMany, Mongoid::Relations::Bindings::Referenced::One
Constant Summary collapse
- OPTIONS =
{ :binding => true, :continue => false }
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(base, target, metadata) ⇒ Binding
constructor
Create the new binding.
Constructor Details
#initialize(base, target, metadata) ⇒ Binding
Create the new binding.
21 22 23 |
# File 'lib/mongoid/relations/binding.rb', line 21 def initialize(base, target, ) @base, @target, @metadata = base, target, end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
7 8 9 |
# File 'lib/mongoid/relations/binding.rb', line 7 def base @base end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/mongoid/relations/binding.rb', line 7 def @metadata end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
7 8 9 |
# File 'lib/mongoid/relations/binding.rb', line 7 def target @target end |