Class: Mongoid::Associations::MetaData
- Defined in:
- lib/mongoid/associations/meta_data.rb
Overview
This class contains metadata about association proxies.
Instance Attribute Summary collapse
-
#association ⇒ Object
readonly
Returns the value of attribute association.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(association, options) ⇒ MetaData
constructor
Create the new associations MetaData object, which holds the type of the association and its options, with convenience methods for getting that information.
Constructor Details
#initialize(association, options) ⇒ MetaData
Create the new associations MetaData object, which holds the type of the association and its options, with convenience methods for getting that information.
Options:
association: The association type as a class instance. options: The association options
24 25 26 |
# File 'lib/mongoid/associations/meta_data.rb', line 24 def initialize(association, ) @association, @options = association, end |
Instance Attribute Details
#association ⇒ Object (readonly)
Returns the value of attribute association.
7 8 9 |
# File 'lib/mongoid/associations/meta_data.rb', line 7 def association @association end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/mongoid/associations/meta_data.rb', line 7 def @options end |