Class: Decidim::Core::MetricHistoryType

Inherits:
Api::Types::BaseObject
  • Object
show all
Defined in:
lib/decidim/api/types/metric_history_type.rb

Instance Method Summary collapse

Instance Method Details

#keyObject



9
10
11
# File 'lib/decidim/api/types/metric_history_type.rb', line 9

def key
  MetricObjectPresenter.new(object).attr_date(0)
end

#valueObject



13
14
15
# File 'lib/decidim/api/types/metric_history_type.rb', line 13

def value
  MetricObjectPresenter.new(object).attr_int(1)
end