Sha256: d728506cad723580df3ca9abb589a3faa7a7014f1b58c855b42ef764af77c6cd
Contents?: true
Size: 623 Bytes
Versions: 6
Compression:
Stored size: 623 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
6 entries across 6 versions & 1 rubygems