Class: Forgeos::Statistics

Inherits:
Object
  • Object
show all
Defined in:
lib/forgeos/statistics.rb

Class Method Summary collapse

Class Method Details

.keywords_most_searched(date = nil, limit = nil) ⇒ Object



7
8
9
# File 'lib/forgeos/statistics.rb', line 7

def self.keywords_most_searched(date = nil, limit = nil)
  SearchKeywordCounter.sum(:counter, :conditions => { :date => date}, :group => :element_id, :limit => limit)
end

.total_of_visitors(date = nil) ⇒ Object



3
4
5
# File 'lib/forgeos/statistics.rb', line 3

def self.total_of_visitors(date = nil)
  VisitorCounter.sum(:counter, :conditions => { :date => date})
end