Class: Kameleoon::DataManager::PageViewVisit

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/data/manager/page_view_visit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject (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_viewObject (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