Sha256: 293ab4582c927eea8bc1cb6f23f405fcc97152a5b8568be6d9807a9e7fa51a1e

Contents?: true

Size: 476 Bytes

Versions: 6

Compression:

Stored size: 476 Bytes

Contents

module MyApp
  class SongSerializer
    include RestPack::Serializer
    attributes :id, :title, :album_id
    can_include :albums, :artists
    can_filter_by :title
  end

  class AlbumSerializer
    include RestPack::Serializer
    attributes :id, :title, :year, :artist_id
    can_include :artists, :songs
    can_filter_by :year
  end

  class ArtistSerializer
    include RestPack::Serializer
    attributes :id, :name, :website
    can_include :albums, :songs
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
restpack_serializer-0.4.11 spec/fixtures/serializers.rb
restpack_serializer-0.4.10 spec/fixtures/serializers.rb
restpack_serializer-0.4.9 spec/fixtures/serializers.rb
restpack_serializer-0.4.8 spec/fixtures/serializers.rb
restpack_serializer-0.4.7 spec/fixtures/serializers.rb
restpack_serializer-0.4.6 spec/fixtures/serializers.rb