summaryrefslogtreecommitdiff
path: root/app/serializers/analytics_summary_entity.rb
blob: a92214d0efaa2bb5848c63767bdc12417880842f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AnalyticsSummaryEntity < Grape::Entity
  expose :identifier
  expose :value, safe: true
  expose :title
  expose :unit, if: { with_unit: true }
  expose :links

  private

  def value
    object.value.to_s
  end
end