Sha256: 724edb5c9889ad30868fff094f5726d35e681cc7343ad96a153bd964a3763e8d

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true
module SocialNetworking
  module Serializers
    # Serializes Participant models.
    class ParticipantSerializer < Serializer
      def to_serialized
        {
          id: model.id,
          username: model.email,
          latestAction: model.latest_action_at,
          endOfTrial: model.active_membership_end_date
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
social_networking-0.13.3 app/models/social_networking/serializers/participant_serializer.rb
social_networking-0.13.2 app/models/social_networking/serializers/participant_serializer.rb
social_networking-0.13.1 app/models/social_networking/serializers/participant_serializer.rb
social_networking-0.13.0 app/models/social_networking/serializers/participant_serializer.rb
social_networking-0.12.0 app/models/social_networking/serializers/participant_serializer.rb