class Visitor
Visitor
¶ ↑
Used to handle Visitor
profiles in WPSessioniser
- Category
- Package
- Author
-
Ryan McCoskrie <ryan.mccoskrie@gmail.com>
- License
-
MIT License
Attributes
hits[R]
Public Class Methods
new()
click to toggle source
# File lib/wp-sessioniser/Visitor.rb, line 15 def initialize @hits = Hash.new end
Public Instance Methods
push_hit(page, date)
click to toggle source
# File lib/wp-sessioniser/Visitor.rb, line 19 def push_hit(page, date) if @hits.has_key?(page) @hits[page].push(date) else @hits[page] = [date] end end