Class: ActiveEntity::Reflection::AggregateReflection
- Inherits:
-
MacroEmbeddedReflection
- Object
- AbstractReflection
- AbstractEmbeddedReflection
- MacroEmbeddedReflection
- ActiveEntity::Reflection::AggregateReflection
- Defined in:
- lib/active_entity/reflection.rb
Overview
Holds all the metadata about an aggregation as it was specified in the Active Entity class.
Instance Attribute Summary
Attributes inherited from MacroEmbeddedReflection
#active_entity, #name, #options
Instance Method Summary collapse
-
#mapping ⇒ Object
:nodoc:.
Methods inherited from MacroEmbeddedReflection
#==, #compute_class, #initialize, #klass
Methods inherited from AbstractEmbeddedReflection
#build_association, #check_validity_of_inverse!, #class_name, #embedded?, #inverse_of, #through_reflection?
Methods inherited from AbstractReflection
Constructor Details
This class inherits a constructor from ActiveEntity::Reflection::MacroEmbeddedReflection
Instance Method Details
#mapping ⇒ Object
:nodoc:
262 263 264 265 |
# File 'lib/active_entity/reflection.rb', line 262 def mapping mapping = [:mapping] || [name, name] mapping.first.is_a?(Array) ? mapping : [mapping] end |