module Goodyear::FilterMethods
Public Instance Methods
filter(name, options = {}, &block)
click to toggle source
# File lib/goodyear/filter_methods.rb, line 3 def filter(name, options = {}, &block) @_filters ||= [] @_filters << {name: name, args: options, l: block} return self end
has_field?(field)
click to toggle source
# File lib/goodyear/filter_methods.rb, line 9 def has_field?(field) filter :exists, {field: field} return self end
query_filter(name, options = {})
click to toggle source
# File lib/goodyear/filter_methods.rb, line 14 def query_filter(name, options = {}) @_query_filters ||= [] @_query_filters << {name: name, options: options} self end