Class: ArelHelpers::QueryBuilder

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/arel-helpers/query_builder.rb

Constant Summary collapse

TERMINAL_METHODS =
[:count, :first, :last]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query) ⇒ QueryBuilder

Returns a new instance of QueryBuilder.


19
20
21
# File 'lib/arel-helpers/query_builder.rb', line 19

def initialize(query)
  @query = query
end

Instance Attribute Details

#queryObject (readonly)

Returns the value of attribute query.


11
12
13
# File 'lib/arel-helpers/query_builder.rb', line 11

def query
  @query
end