summaryrefslogtreecommitdiff
path: root/app/serializers/label_serializer.rb
blob: b09592da67fd438c7cdfb1e090a3d4af9deee01a (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class LabelSerializer < BaseSerializer
  entity LabelEntity

  def represent_appearance(resource)
    represent(resource, { only: [:id, :title, :color, :text_color, :project_id] })
  end
end