Sha256: 903194cfa04ae4c45940ea29230519a0f4acb6e8ad9ed39256c5e95631a3468c

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forgeos_core-1.9.5.rc2 lib/forgeos/statistics.rb
forgeos_core-1.9.5.rc1 lib/forgeos/statistics.rb
forgeos_core-1.9.4 lib/forgeos/statistics.rb
forgeos_core-1.9.3 lib/forgeos/statistics.rb
forgeos_core-1.9.2 lib/forgeos/statistics.rb
forgeos_core-1.9.1 lib/forgeos/statistics.rb