Class: Hyrax::Admin::UserActivityPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/hyrax/admin/user_activity_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(start_date, end_date) ⇒ UserActivityPresenter

Returns a new instance of UserActivityPresenter.



5
6
7
8
9
# File 'app/presenters/hyrax/admin/user_activity_presenter.rb', line 5

def initialize(start_date, end_date)
  @x_min = start_date
  @x_max = end_date
  @date_format = ->(x) { x }
end

Instance Method Details

#as_jsonObject



11
12
13
# File 'app/presenters/hyrax/admin/user_activity_presenter.rb', line 11

def as_json(*)
  new_users.to_a
end