summaryrefslogtreecommitdiff
path: root/app/serializers/label_serializer.rb
blob: 25b9f7de243d104f476c39871f2c6fc8cae07f25 (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] })
  end
end