summaryrefslogtreecommitdiff
path: root/app/serializers/label_serializer.rb
blob: ad6ba8c46c99e3256a6274d612051eb515a30c63 (plain)
1
2
3
4
5
6
7
class LabelSerializer < BaseSerializer
  entity LabelEntity

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