gitlab-org--gitlab-foss/app/serializers/analytics_summary_entity.rb

8 lines
153 B
Ruby
Raw Normal View History

class AnalyticsSummaryEntity < Grape::Entity
expose :value, safe: true
expose :title do |object|
object.title.pluralize(object.value)
end
end