Sha256: cb2e8e8a29d62e99eb1bebf95d1651c13c54dfb5ec6ad6fb71447dff0f6234aa
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
module MyApp 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restpack_serializer-0.4.5 | spec/fixtures/serializers.rb |
restpack_serializer-0.4.4 | spec/fixtures/serializers.rb |
restpack_serializer-0.4.3 | spec/fixtures/serializers.rb |