Welcome to mirror list, hosted at ThFree Co, Russian Federation.

analytics_summary_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62828fc1428fdc94d850c03dd197ec35057d783f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

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

  private

  def value
    object.value.to_s
  end
end