Class: Hyrax::StatsUsagePresenter

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

Overview

Methods used by both WorkUsage and FileUsage

Direct Known Subclasses

FileUsage, WorkUsage

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



4
5
6
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 4

def id
  @id
end

#modelObject

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

#createdObject



6
7
8
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 6

def created
  @created ||= date_for_analytics
end