Sha256: 9bafbf379017b17696d713b28f5ae8d39e0b99c5f3167100bcd963dab7435dde
Contents?: true
Size: 612 Bytes
Versions: 21
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module Hyrax module Admin class UserActivityPresenter def initialize(start_date, end_date) @x_min = start_date @x_max = end_date @date_format = ->(x) { x } end def as_json(*) new_users.to_a end private def new_users Hyrax::Statistics::Users::OverTime.new(delta_x: 1, x_min: @x_min, x_max: @x_max, x_output: @date_format).points end end end end
Version data entries
21 entries across 21 versions & 1 rubygems