Class: LogAnalyser::PageviewsLogAggregator

Inherits:
Object
  • Object
show all
Defined in:
lib/pageviews_log_aggregator.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ PageviewsLogAggregator

Returns a new instance of PageviewsLogAggregator.



9
10
11
# File 'lib/pageviews_log_aggregator.rb', line 9

def initialize(file_path)
  @file_path = file_path
end

Instance Method Details

#all ⇒ Object



13
14
15
# File 'lib/pageviews_log_aggregator.rb', line 13

def all
  Pageviews.for(entries)
end

#unique ⇒ Object



17
18
19
# File 'lib/pageviews_log_aggregator.rb', line 17

def unique
  UniquePageviews.for(entries)
end