Class: QueryFilters::Query

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/query_filters/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query_string, options = {}) ⇒ Query

Returns a new instance of Query.



11
12
13
14
# File 'lib/query_filters/query.rb', line 11

def initialize(query_string, options = {})
  @options      = options
  @query_string = query_string
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/query_filters/query.rb', line 7

def options
  @options
end

#query_stringObject

Returns the value of attribute query_string.



7
8
9
# File 'lib/query_filters/query.rb', line 7

def query_string
  @query_string
end

Instance Method Details

#parserQueryFilters::Parser



17
18
19
# File 'lib/query_filters/query.rb', line 17

def parser
  Parser.new(self, options)
end