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