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

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

  private

  def value
    object.value.to_s
  end
end