Class: EagerGroup::Definition
- Inherits:
-
Object
- Object
- EagerGroup::Definition
- Defined in:
- lib/eager_group/definition.rb
Instance Attribute Summary collapse
-
#aggregate_function ⇒ Object
readonly
Returns the value of attribute aggregate_function.
-
#association ⇒ Object
readonly
Returns the value of attribute association.
-
#column_name ⇒ Object
readonly
Returns the value of attribute column_name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(association, aggregate_function, column_name, scope) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(association, aggregate_function, column_name, scope) ⇒ Definition
Returns a new instance of Definition.
5 6 7 8 9 10 |
# File 'lib/eager_group/definition.rb', line 5 def initialize(association, aggregate_function, column_name, scope) @association = association @aggregate_function = aggregate_function @column_name = column_name @scope = scope end |
Instance Attribute Details
#aggregate_function ⇒ Object (readonly)
Returns the value of attribute aggregate_function.
3 4 5 |
# File 'lib/eager_group/definition.rb', line 3 def aggregate_function @aggregate_function end |
#association ⇒ Object (readonly)
Returns the value of attribute association.
3 4 5 |
# File 'lib/eager_group/definition.rb', line 3 def association @association end |
#column_name ⇒ Object (readonly)
Returns the value of attribute column_name.
3 4 5 |
# File 'lib/eager_group/definition.rb', line 3 def column_name @column_name end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
3 4 5 |
# File 'lib/eager_group/definition.rb', line 3 def scope @scope end |