Class: Mongolytics::Statistic

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::Document
Defined in:
lib/mongolytics/statistic.rb

Class Method Summary collapse

Class Method Details

.stats_for_keys(controller, action) ⇒ Object



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

def self.stats_for_keys(controller, action)
  count({:controller => controller.to_s, :action => action.to_s})
end

.stats_for_path(path) ⇒ Object



12
13
14
# File 'lib/mongolytics/statistic.rb', line 12

def self.stats_for_path(path)
  count({:path => path})
end