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

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

module API
  module Entities
    class LabelBasic < Grape::Entity
      expose :id, :name, :description, :description_html, :text_color

      expose :color do |label, options|
        label.color.to_s
      end
    end
  end
end