Sha256: 8c55b06876a82bdfe00764f5cf66db9fdb6657877ce3dabacee66e16d320b3aa

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true
module SocialNetworking
  module Serializers
    # Serializes Profile Question models.
    class ProfileQuestionSerializer < Serializer
      def to_serialized
        {
          id: model.id,
          question_text: model.question_text
        }
      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/profile_question_serializer.rb
social_networking-0.13.2 app/models/social_networking/serializers/profile_question_serializer.rb
social_networking-0.13.1 app/models/social_networking/serializers/profile_question_serializer.rb
social_networking-0.13.0 app/models/social_networking/serializers/profile_question_serializer.rb
social_networking-0.12.0 app/models/social_networking/serializers/profile_question_serializer.rb