2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-22 05:46:02 -05:00
|
|
|
class AnalyticsSummaryEntity < Grape::Entity
|
2022-01-21 07:16:22 -05:00
|
|
|
expose :identifier
|
2016-11-22 05:46:02 -05:00
|
|
|
expose :value, safe: true
|
2017-05-03 22:05:38 -04:00
|
|
|
expose :title
|
2020-04-08 08:09:42 -04:00
|
|
|
expose :unit, if: { with_unit: true }
|
2021-10-29 08:14:45 -04:00
|
|
|
expose :links
|
2020-04-21 11:21:10 -04:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def value
|
2020-05-12 11:10:33 -04:00
|
|
|
object.value.to_s
|
2020-04-21 11:21:10 -04:00
|
|
|
end
|
2016-11-22 05:46:02 -05:00
|
|
|
end
|