Class: LabelSerializer

Inherits:
BaseSerializer show all
Defined in:
app/serializers/label_serializer.rb

Instance Attribute Summary

Attributes inherited from BaseSerializer

#params

Instance Method Summary collapse

Methods inherited from BaseSerializer

entity, #initialize, #represent

Constructor Details

This class inherits a constructor from BaseSerializer

Instance Method Details

#represent_appearance(resource) ⇒ Object



6
7
8
# File 'app/serializers/label_serializer.rb', line 6

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