Class: ViewerCountHelper
- Inherits:
-
ViewCountHelper
- Object
- ViewCountHelper
- ViewerCountHelper
- Defined in:
- lib/helpers/counter-helpers.rb
Instance Attribute Summary
Attributes inherited from ViewCountHelper
Instance Method Summary collapse
- #count_key(page, view, author) ⇒ Object
-
#initialize(wiki, views_to_count = [ 'view' ], page_name = 'Prolific Viewers', update_page_every = :hour, show_top = 20, cache_name = 'viewercount') ⇒ ViewerCountHelper
constructor
A new instance of ViewerCountHelper.
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, ) end |