Sha256: 8e290c9434b79dec2c3903c8641756abb83853b64f214b5dd6a4df2d1321231d

Contents?: true

Size: 312 Bytes

Versions: 11

Compression:

Stored size: 312 Bytes

Contents

module SocialNetworking
  module Serializers
    # Abstract serializer.
    class Serializer
      attr_reader :model

      def self.from_collection(collection)
        collection.map { |i| new(i).to_serialized }.compact
      end

      def initialize(model)
        @model = model
      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/serializer.rb
social_networking-0.11.7 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.6 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.5 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.4 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.3 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.2 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.1 app/models/social_networking/serializers/serializer.rb
social_networking-0.11.0 app/models/social_networking/serializers/serializer.rb
social_networking-0.10.0 app/models/social_networking/serializers/serializer.rb
social_networking-0.9.3 app/models/social_networking/serializers/serializer.rb