Sha256: 998a8ddfaaae8a6302236526377d45a7a0e718bf293a3e53db599c37087fabba
Contents?: true
Size: 507 Bytes
Versions: 5
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true module SocialNetworking module Serializers # Serializes Like models. class LikeSerializer < Serializer def to_serialized { createdAt: model.created_at, id: model.id, participantId: model.participant_id, participantDisplayName: model.participant.display_name, isAdmin: model.participant.is_admin, itemType: model.item_type, itemId: model.item_id } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems