Module: QueryReport::FilterModule

Included in:
Report
Defined in:
lib/query_report/filter.rb

Defined Under Namespace

Classes: Filter

Instance Method Summary collapse

Instance Method Details

#filter(column, options, &block) ⇒ Object



3
4
5
# File 'lib/query_report/filter.rb', line 3

def filter(column, options, &block)
  @filters << Filter.new(@params, column, options, &block)
end

#filter_with_valuesObject



7
8
9
10
11
12
13
# File 'lib/query_report/filter.rb', line 7

def filter_with_values
  hash = {}
  @filters.each do |filter|
    hash.merge!(filter.filter_with_values)
  end
  hash
end