Class: ViewerCountHelper

Inherits:
ViewCountHelper show all
Defined in:
lib/helpers/counter-helpers.rb

Instance Attribute Summary

Attributes inherited from ViewCountHelper

#counts

Instance Method Summary collapse

Methods inherited from ViewCountHelper

#count, #render_count_page, #should_count?

Constructor Details

#initialize(wiki, views_to_count = [ 'view' ], page_name = 'Prolific Viewers', update_page_every = :hour, show_top = 20, cache_name = 'viewercount') ⇒ ViewerCountHelper

Returns a new instance of ViewerCountHelper.



79
80
81
# File 'lib/helpers/counter-helpers.rb', line 79

def initialize( wiki, views_to_count = [ 'view' ], page_name = 'Prolific Viewers', update_page_every = :hour, show_top = 20, cache_name = 'viewercount' ) 
	super( wiki, views_to_count, page_name, update_page_every, show_top, cache_name )
end

Instance Method Details

#count_key(page, view, author) ⇒ Object



83
84
85
# File 'lib/helpers/counter-helpers.rb', line 83

def count_key( page, view, author )
	author
end