Sha256: 09349b55c096446d2896e3357cd410c12cb07f362f5d676177de5def27597bc8

Contents?: true

Size: 477 Bytes

Versions: 11

Compression:

Stored size: 477 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
social_networking-0.11.8 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.7 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.6 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.5 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.4 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.3 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.2 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.1 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.11.0 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.10.0 app/models/social_networking/serializers/like_serializer.rb
social_networking-0.9.3 app/models/social_networking/serializers/like_serializer.rb