Class: ARQO::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/arqo/query.rb

Overview

Parent class for query objects

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(relation = associated_relation) ⇒ Query

Returns a new instance of Query.



10
11
12
# File 'lib/arqo/query.rb', line 10

def initialize(relation = associated_relation)
  @relation = relation.extending(scope_module)
end

Instance Attribute Details

#relationObject (readonly)

Returns the value of attribute relation.



6
7
8
# File 'lib/arqo/query.rb', line 6

def relation
  @relation
end