Class: EagerGroup::Definition

Inherits:
Object
  • Object
show all
Defined in:
lib/eager_group/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_functionObject (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

#associationObject (readonly)

Returns the value of attribute association.



3
4
5
# File 'lib/eager_group/definition.rb', line 3

def association
  @association
end

#column_nameObject (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

#scopeObject (readonly)

Returns the value of attribute scope.



3
4
5
# File 'lib/eager_group/definition.rb', line 3

def scope
  @scope
end