Skip to content
hexorx edited this page Jan 19, 2011 · 4 revisions

Defining a Report Class

class Exits
  extend Garb::Model

  metrics :exits, :pageviews
  dimensions :request_uri
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