Sha256: 4af9bd90add2c6021517ba59c61b9b5140c5e8b2c4e147cad158f82ae4f0f2c0

Contents?: true

Size: 379 Bytes

Versions: 11

Compression:

Stored size: 379 Bytes

Contents

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
restpack_serializer-0.2.13 spec/fixtures/serializers.rb
restpack_serializer-0.2.12 spec/fixtures/serializers.rb
restpack_serializer-0.2.11 spec/fixtures/serializers.rb
restpack_serializer-0.2.10 spec/fixtures/serializers.rb
restpack_serializer-0.2.9 spec/fixtures/serializers.rb
restpack_serializer-0.2.8 spec/fixtures/serializers.rb
restpack_serializer-0.2.7 spec/fixtures/serializers.rb
restpack_serializer-0.2.6 spec/fixtures/serializers.rb
restpack_serializer-0.2.5 spec/fixtures/serializers.rb
restpack_serializer-0.2.4 spec/fixtures/serializers.rb
restpack_serializer-0.2.3 spec/fixtures/serializers.rb