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

16 lines
307 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class LabelEntity < Grape::Entity
2017-07-07 08:54:49 -04:00
expose :id, if: ->(label, _) { !label.is_a?(GlobalLabel) }
expose :title
expose :color
expose :description
expose :group_id
expose :project_id
expose :template
2017-05-05 18:47:32 -04:00
expose :text_color
expose :created_at
expose :updated_at
end