Sha256: c4f221c31ef03f0a31277eab561ec63037735e0f2650a5f0b461271205611cf7

Contents?: true

Size: 232 Bytes

Versions: 14

Compression:

Stored size: 232 Bytes

Contents

# frozen_string_literal: true

class UniquePageviews < Pageviews
  def generate_view_count(entries)
    entries.transform_values { |value| value.uniq.size }
           .sort_by(&:last)
           .reverse
           .to_h
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
log-analyser-0.1.3.pre.documentation.20201108184713 lib/unique_pageviews.rb
log-analyser-0.1.3.pre.documentation.20201108181359 lib/unique_pageviews.rb
log-analyser-0.1.2b lib/unique_pageviews.rb
log-analyser-0.1.2b.pre.bumpversion.20201107195800 lib/unique_pageviews.rb
log-analyser-0.1.2 lib/unique_pageviews.rb
log-analyser-0.1.2.pre.v012b.20201107192223 lib/unique_pageviews.rb
log-analyser-0.1.1.pre.v012b.20201107192007 lib/unique_pageviews.rb
log-analyser-0.1.1.pre.v012b.20201107191751 lib/unique_pageviews.rb
log-analyser-0.1.2.pre.v012.20201107185736 lib/unique_pageviews.rb
log-analyser-0.1.1 lib/unique_pageviews.rb
log-analyser-0.1.1.pre.deployment.20201107180229 lib/unique_pageviews.rb
log-analyser-0.1.1.pre.expandreadme.20201107175459 lib/unique_pageviews.rb
log-analyser-0.1.1.pre.addgemtagrelease.20201106201808 lib/unique_pageviews.rb
log-analyser-0.1.1.pre.test.20201106194135 lib/unique_pageviews.rb