Module: Metry

Defined in:
lib/metry.rb,
lib/metry/goal.rb,
lib/metry/event.rb,
lib/metry/cohort.rb,
lib/metry/psycho.rb,
lib/metry/visitor.rb,
lib/metry/experiment.rb,
lib/metry/rack/tracking.rb

Defined Under Namespace

Modules: Rack Classes: Cohort, Event, Experiment, Goal, Psycho, Visitor

Constant Summary collapse

VERSION =
'2.1.1'

Class Method Summary collapse

Class Method Details

.clearObject



20
21
22
23
24
# File 'lib/metry.rb', line 20

def self.clear
  [Metry::Event, Metry::Visitor, Metry::Goal, Metry::Experiment].each do |m|
    m.delete_all
  end
end

.init(dbname) ⇒ Object



16
17
18
# File 'lib/metry.rb', line 16

def self.init(dbname)
  MongoMapper.database = dbname
end