Class: StatusPanelTaskSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/status_panel_task_serializer.rb

Instance Method Summary collapse

Instance Method Details

#slotObject



8
9
10
11
12
13
14
15
# File 'app/serializers/status_panel_task_serializer.rb', line 8

def slot
  if object.slot
    {
      uuid: object.slot.uuid,
      name: object.slot.name
    }
  end
end