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