Class: Quo::LoadedQuery
- Inherits:
-
EagerQuery
- Object
- Query
- EagerQuery
- Quo::LoadedQuery
- Defined in:
- lib/quo/loaded_query.rb
Instance Attribute Summary
Attributes inherited from Query
#current_page, #options, #page_size
Instance Method Summary collapse
- #copy(**options) ⇒ Object
-
#initialize(collection, **options) ⇒ LoadedQuery
constructor
A new instance of LoadedQuery.
Methods inherited from EagerQuery
#count, #eager?, #paged?, #query, #relation?
Methods inherited from Query
call, call!, #compose, #eager?, #exists?, #first, #first!, #group, #includes, #last, #limit, #none?, #order, #page_count, #paged?, #preload, #query, #relation?, #results, #select, #to_a, #to_eager, #to_sql, #transform, #transform?, #unwrap, #unwrap_unpaginated
Methods included from Utilities::Compose
Methods included from Utilities::Sanitize
#sanitize_sql_for_conditions, #sanitize_sql_parameter, #sanitize_sql_string
Methods included from Utilities::Wrap
Methods included from Utilities::Callstack
Constructor Details
#initialize(collection, **options) ⇒ LoadedQuery
Returns a new instance of LoadedQuery.
5 6 7 8 |
# File 'lib/quo/loaded_query.rb', line 5 def initialize(collection, **) @collection = collection super(**) end |
Instance Method Details
#copy(**options) ⇒ Object
10 11 12 |
# File 'lib/quo/loaded_query.rb', line 10 def copy(**) self.class.new(@collection, **.merge()) end |