Skip to content
tpitale edited this page Jul 1, 2011 · 4 revisions

Defining a Report Class

class Exits
  extend Garb::Model

  metrics :exits, :pageviews
  dimensions :page_path
end

This is useful if you have a class that you would like to use, and define methods, or maybe use with a database. With a defined class, we'll specify filters and sorting as part of Getting Results, (along with all the other options).

Be sure to validate the combination of metrics and dimensions.

Clone this wiki locally