Class: Hyrax::Admin::UserActivityPresenter
- Inherits:
-
Object
- Object
- Hyrax::Admin::UserActivityPresenter
- Defined in:
- app/presenters/hyrax/admin/user_activity_presenter.rb
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(start_date, end_date) ⇒ UserActivityPresenter
constructor
A new instance of UserActivityPresenter.
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_json ⇒ Object
11 12 13 |
# File 'app/presenters/hyrax/admin/user_activity_presenter.rb', line 11 def as_json(*) new_users.to_a end |