Class: Kameleoon::DataManager::PageViewVisit
- Inherits:
-
Object
- Object
- Kameleoon::DataManager::PageViewVisit
- Defined in:
- lib/kameleoon/data/manager/page_view_visit.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#page_view ⇒ Object
readonly
Returns the value of attribute page_view.
Instance Method Summary collapse
-
#initialize(page_view, count = 1) ⇒ PageViewVisit
constructor
A new instance of PageViewVisit.
- #overwrite(page_view) ⇒ Object
Constructor Details
#initialize(page_view, count = 1) ⇒ PageViewVisit
Returns a new instance of PageViewVisit.
8 9 10 11 |
# File 'lib/kameleoon/data/manager/page_view_visit.rb', line 8 def initialize(page_view, count = 1) @page_view = page_view @count = count end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
6 7 8 |
# File 'lib/kameleoon/data/manager/page_view_visit.rb', line 6 def count @count end |
#page_view ⇒ Object (readonly)
Returns the value of attribute page_view.
6 7 8 |
# File 'lib/kameleoon/data/manager/page_view_visit.rb', line 6 def page_view @page_view end |
Instance Method Details
#overwrite(page_view) ⇒ Object
13 14 15 16 |
# File 'lib/kameleoon/data/manager/page_view_visit.rb', line 13 def overwrite(page_view) @page_view = page_view @count += 1 end |