Class: Hyrax::StatsUsagePresenter
- Inherits:
-
Object
- Object
- Hyrax::StatsUsagePresenter
- Defined in:
- app/presenters/hyrax/stats_usage_presenter.rb
Overview
Methods used by both WorkUsage and FileUsage
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#model ⇒ Object
Returns the value of attribute model.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 5 def id @id end |
#model ⇒ Object
Returns the value of attribute model.
5 6 7 |
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 5 def model @model end |
Instance Method Details
#created ⇒ Object
7 8 9 |
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 7 def created @created ||= date_for_analytics end |