Class: JunglePath::Query::Query
- Inherits:
-
Object
- Object
- JunglePath::Query::Query
- Defined in:
- lib/jungle_path/query/query.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
readonly
Returns the value of attribute aliases.
-
#apply_limit_offset_to_sql ⇒ Object
readonly
Returns the value of attribute apply_limit_offset_to_sql.
-
#primary_key_field_count ⇒ Object
readonly
Returns the value of attribute primary_key_field_count.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#sort_ids ⇒ Object
readonly
Returns the value of attribute sort_ids.
-
#sql ⇒ Object
readonly
Returns the value of attribute sql.
-
#symbols ⇒ Object
readonly
Returns the value of attribute symbols.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(root, sql, values, aliases, symbols, sort_ids, primary_key_field_count, apply_limit_offset_to_sql = false) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(root, sql, values, aliases, symbols, sort_ids, primary_key_field_count, apply_limit_offset_to_sql = false) ⇒ Query
Returns a new instance of Query.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jungle_path/query/query.rb', line 11 def initialize(root, sql, values, aliases, symbols, sort_ids, primary_key_field_count, apply_limit_offset_to_sql=false) @root = root @sql = sql @values = values @aliases = aliases @symbols = symbols @sort_ids = sort_ids @primary_key_field_count = primary_key_field_count @apply_limit_offset_to_sql = apply_limit_offset_to_sql end |
Instance Attribute Details
#aliases ⇒ Object (readonly)
Returns the value of attribute aliases.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def aliases @aliases end |
#apply_limit_offset_to_sql ⇒ Object (readonly)
Returns the value of attribute apply_limit_offset_to_sql.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def apply_limit_offset_to_sql @apply_limit_offset_to_sql end |
#primary_key_field_count ⇒ Object (readonly)
Returns the value of attribute primary_key_field_count.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def primary_key_field_count @primary_key_field_count end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def root @root end |
#sort_ids ⇒ Object (readonly)
Returns the value of attribute sort_ids.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def sort_ids @sort_ids end |
#sql ⇒ Object (readonly)
Returns the value of attribute sql.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def sql @sql end |
#symbols ⇒ Object (readonly)
Returns the value of attribute symbols.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def symbols @symbols end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
10 11 12 |
# File 'lib/jungle_path/query/query.rb', line 10 def values @values end |