Class: Quo::WrappedQuery
Instance Attribute Summary
Attributes inherited from Query
#current_page, #options, #page_size
Instance Method Summary collapse
- #copy(**options) ⇒ Object
-
#initialize(wrapped_query, **options) ⇒ WrappedQuery
constructor
A new instance of WrappedQuery.
- #query ⇒ Object
Methods inherited from Query
call, call!, #compose, #eager?, #exists?, #first, #first!, #group, #includes, #last, #limit, #none?, #order, #page_count, #paged?, #preload, #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(wrapped_query, **options) ⇒ WrappedQuery
Returns a new instance of WrappedQuery.
5 6 7 8 |
# File 'lib/quo/wrapped_query.rb', line 5 def initialize(wrapped_query, **) @wrapped_query = wrapped_query super(**) end |
Instance Method Details
#copy(**options) ⇒ Object
10 11 12 |
# File 'lib/quo/wrapped_query.rb', line 10 def copy(**) self.class.new(query, **.merge()) end |
#query ⇒ Object
14 15 16 |
# File 'lib/quo/wrapped_query.rb', line 14 def query @wrapped_query end |