2020-02-13 00:08:46 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class LabelBasic < Grape::Entity
|
2022-03-03 00:20:18 +00:00
|
|
|
expose :id, :name, :description, :description_html, :text_color
|
|
|
|
|
|
|
|
expose :color do |label, options|
|
|
|
|
label.color.to_s
|
|
|
|
end
|
2020-02-13 00:08:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|