Class: Decidim::Core::MetricHistoryType

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

Instance Method Summary collapse

Instance Method Details

#keyObject


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

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

#valueObject


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

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