Sha256: 99bb321a2bbb0c82966cb5071281b09f80bb1b685da4eabeeda8af52f473f444

Contents?: true

Size: 359 Bytes

Versions: 11

Compression:

Stored size: 359 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

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