Class: ARQO::Query
- Inherits:
-
Object
- Object
- ARQO::Query
- Defined in:
- lib/arqo/query.rb
Overview
Parent class for query objects
Instance Attribute Summary collapse
-
#relation ⇒ Object
readonly
Returns the value of attribute relation.
Instance Method Summary collapse
-
#initialize(relation = associated_relation) ⇒ Query
constructor
A new instance of Query.
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
#relation ⇒ Object (readonly)
Returns the value of attribute relation.
6 7 8 |
# File 'lib/arqo/query.rb', line 6 def relation @relation end |