Class: QueryFilters::Query
- Inherits:
-
Object
- Object
- QueryFilters::Query
- Extended by:
- Forwardable
- Defined in:
- lib/query_filters/query.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#query_string ⇒ Object
Returns the value of attribute query_string.
Instance Method Summary collapse
-
#initialize(query_string, options = {}) ⇒ Query
constructor
A new instance of Query.
- #parser ⇒ QueryFilters::Parser
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 = @query_string = query_string end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/query_filters/query.rb', line 7 def @options end |
#query_string ⇒ Object
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
#parser ⇒ QueryFilters::Parser
17 18 19 |
# File 'lib/query_filters/query.rb', line 17 def parser Parser.new(self, ) end |