14 lines
232 B
Ruby
14 lines
232 B
Ruby
# 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
|