Module: Ghaki::Stats::Mixin

Includes:
App::Mixable
Defined in:
lib/ghaki/stats/mixin.rb

Overview

Mixin stats object with auto-first use object creation.

Note: Creates new Base stats object, does not grab copy from App Engine.

Example

class MyAction
  include Ghaki::Stats::Mixin
  def do_something
    stats.incr 'Did', 'Something'
  end
end

myact = MyAction.new
myact.do_something