Module: QueryFilters

Defined in:
lib/query_filters.rb,
lib/query_filters/query.rb,
lib/query_filters/parser.rb,
lib/query_filters/version.rb

Defined Under Namespace

Classes: ParseError, Parser, Query

Constant Summary collapse

VERSION =
'0.2.0'.freeze

Class Method Summary collapse

Class Method Details

.parse(query, options = {}) ⇒ Hash

Parameters:

  • query (String)
  • options (Hash) (defaults to: {})

Returns:

  • (Hash)


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

def self.parse(query, options = {})
  Query.new(query, options).to_hash
end