Sha256: a46b9721b6c946f821c2af5db2fcf278596a67557465761d803d65a9a5846390
Contents?: true
Size: 621 Bytes
Versions: 8
Compression:
Stored size: 621 Bytes
Contents
class FileViewStat < ActiveRecord::Base extend Sufia::FileStatUtils def to_flot [ self.class.convert_date(date), views ] end def self.statistics file_id, start_date, user_id=nil combined_stats file_id, start_date, :views, :pageviews, user_id end # Sufia::Download is sent to Sufia::Analytics.profile as #sufia__download # see Legato::ProfileMethods.method_name_from_klass def self.ga_statistics start_date, file_id path = Sufia::Engine.routes.url_helpers.generic_file_path(file_id) Sufia::Analytics.profile.sufia__pageview(sort: 'date', start_date: start_date).for_path(path) end end
Version data entries
8 entries across 8 versions & 2 rubygems