class TestReporting < Reporting attr_reader :aggregate_calls filter :name, :default => 'foobar' filter :from_date, :type => :date filter :to_date, :type => :date filter :in_foo select_default %w(name age) group_by_default %w(name) column :name, :type => :string column :age, :type => :number, :grouping => true column :address, :type => :string, :grouping => true column :fullname, :type => :string, :requires => :name column :fullfullname, :type => :string, :requires => :fullname column :circle_a, :requires => :circle_b column :circle_b, :requires => :circle_a def initialize(*args) #@select = %w(name age) @aggregate_calls = 0 super(*args) end def aggregate @aggregate_calls += 1 [] end end