Sha256: ec8c7c06d6fc30fd4acd5d145d48da35147e8ae7a2c47900bbd81f484faa19fd
Contents?: true
Size: 702 Bytes
Versions: 11
Compression:
Stored size: 702 Bytes
Contents
module SocialNetworking module Serializers # Serializes OnTheMindStatement models. class OnTheMindStatementSerializer < Serializer def to_serialized { className: "SocialNetworking::OnTheMindStatement", id: model.id, createdAt: model.created_at, createdAtRaw: model.created_at.to_i, participantId: model.participant_id, isAdmin: model.participant.is_admin, summary: "said #{ model.description }", description: model.description, comments: CommentSerializer.from_collection(model.comments), likes: LikeSerializer.from_collection(model.likes) } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems