Class: ActiveForce::Association::AbstractProjectionBuilder
- Inherits:
-
Object
- Object
- ActiveForce::Association::AbstractProjectionBuilder
- Defined in:
- lib/active_force/association/eager_load_projection_builder.rb
Direct Known Subclasses
BelongsToAssociationProjectionBuilder, HasManyAssociationProjectionBuilder
Instance Attribute Summary collapse
-
#association ⇒ Object
readonly
Returns the value of attribute association.
Instance Method Summary collapse
-
#initialize(association) ⇒ AbstractProjectionBuilder
constructor
A new instance of AbstractProjectionBuilder.
- #projections ⇒ Object
Constructor Details
#initialize(association) ⇒ AbstractProjectionBuilder
Returns a new instance of AbstractProjectionBuilder.
28 29 30 |
# File 'lib/active_force/association/eager_load_projection_builder.rb', line 28 def initialize(association) @association = association end |
Instance Attribute Details
#association ⇒ Object (readonly)
Returns the value of attribute association.
26 27 28 |
# File 'lib/active_force/association/eager_load_projection_builder.rb', line 26 def association @association end |
Instance Method Details
#projections ⇒ Object
32 33 34 |
# File 'lib/active_force/association/eager_load_projection_builder.rb', line 32 def projections raise "Must define #{self.class.name}#projections" end |