Class: Hyrax::StatsUsagePresenter Abstract

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

Overview

This class is abstract.

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.


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

def id
  @id
end

#modelObject

Returns the value of attribute model.


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

def model
  @model
end

Instance Method Details

#createdObject


8
9
10
# File 'app/presenters/hyrax/stats_usage_presenter.rb', line 8

def created
  @created ||= date_for_analytics
end