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.
4 5 6 |
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 4 def id @id end |
#model ⇒ Object
Returns the value of attribute model.
4 5 6 |
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 4 def model @model end |
Instance Method Details
#created ⇒ Object
6 7 8 |
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 6 def created @created ||= date_for_analytics end |