Sha256: ec4ce5ef2877045e123c6a8f03f8518857ed18abe95b04de0b10bf3d2b0bbd58

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 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

5 entries across 5 versions & 1 rubygems

Version Path
restpack_serializer-0.4.2 spec/fixtures/serializers.rb
restpack_serializer-0.4.1 spec/fixtures/serializers.rb
restpack_serializer-0.2.16 spec/fixtures/serializers.rb
restpack_serializer-0.2.15 spec/fixtures/serializers.rb
restpack_serializer-0.2.14 spec/fixtures/serializers.rb