Class: Arel::Group

Inherits:
Compound show all
Defined in:
lib/arel/algebra/relations/operations/group.rb,
lib/arel/engines/memory/relations/operations.rb

Instance Attribute Summary

Attributes inherited from Compound

#relation

Attributes included from Relation

#count

Instance Method Summary collapse

Methods inherited from Compound

#attributes, #build_query, #engine, #eql?, #hash, requires, #unoperated_rows

Methods included from Relation

#bind, #call, #christener, #compiler, #exclusion_predicate_sql, #externalizable?, #externalize, #inclusion_predicate_sql, #join?, #primary_key, #session, #to_sql

Methods included from Relation::DefaultOperations

#attributes, #groupings, #havings, #inserts, #joins, #locked, #orders, #projections, #skipped, #sources, #taken, #wheres

Methods included from Relation::AttributeAccessable

#[], #find_attribute_matching_attribute, #find_attribute_matching_name, #position_of

Methods included from Relation::Operable

#alias, #join, #lock, #outer_join

Methods included from Relation::Operable::Writable

#delete, #insert, #update

Methods included from Relation::Enumerable

#each, #first

Constructor Details

#initialize(relation, *groupings, &block) ⇒ Group

Returns a new instance of Group.



6
7
8
9
10
# File 'lib/arel/algebra/relations/operations/group.rb', line 6

def initialize(relation, *groupings, &block)
  @relation = relation
  @groupings = (groupings + arguments_from_block(relation, &block)) \
    .collect { |g| g.bind(relation) }
end

Instance Method Details

#evalObject

Raises:

  • (NotImplementedError)


42
43
44
# File 'lib/arel/engines/memory/relations/operations.rb', line 42

def eval
  raise NotImplementedError
end