Sha256: f0a2e2522622dfa2440ac4ca5dd4c9e6f88d98f82efbd3f494ea8bf0e6d7a43d

Contents?: true

Size: 469 Bytes

Versions: 9

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

require_relative 'parser'
require_relative 'pageviews'
require_relative 'unique_pageviews'

module LogAnalyser
  class PageviewsLogAggregator
    def initialize(file_path)
      @file_path = file_path
    end

    def all
      Pageviews.for(entries)
    end

    def unique
      UniquePageviews.for(entries)
    end

    private

    attr_accessor :file_path

    def entries
      @entries ||= Parser.call(file_path)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
log-analyser-0.1.3.pre.littleimprovements.20201109113028 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.littleimprovements.20201109103434 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.littleimprovements.20201109101712 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.documentation.20201108213613 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.documentation.20201108213409 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.documentation.20201108212148 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.documentation.20201108193310 lib/pageviews_log_aggregator.rb
log-analyser-0.1.3.pre.documentation.20201108192110 lib/pageviews_log_aggregator.rb