Sha256: a4617f91a4ad7d68ac32a214c97b507bb828a2179e93ea470890edc9ee7a31f4

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

module Representer
  module XML
    class Album < Roar::Representer::XML
      self.representation_name= :album
      
      property :id
      property :year
      collection :songs
      
      link :self do
        album_url(represented.id)
      end
      
      link "album-search" do
        album_search_url
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
roar-0.11.4 test/dummy/app/representers/representer/xml/album.rb
roar-0.11.3 test/dummy/app/representers/representer/xml/album.rb
roar-0.11.2 test/dummy/app/representers/representer/xml/album.rb
roar-0.11.1 test/dummy/app/representers/representer/xml/album.rb
roar-0.11.0 test/dummy/app/representers/representer/xml/album.rb
roar-0.10.2 test/dummy/app/representers/representer/xml/album.rb
roar-0.10.1 test/dummy/app/representers/representer/xml/album.rb
roar-0.10.0 test/dummy/app/representers/representer/xml/album.rb
roar-0.9.2 test/dummy/app/representers/representer/xml/album.rb
roar-0.9.1 test/dummy/app/representers/representer/xml/album.rb
roar-0.9.0 test/dummy/app/representers/representer/xml/album.rb
roar-0.8.3 test/dummy/app/representers/representer/xml/album.rb
roar-0.8.2 test/dummy/app/representers/representer/xml/album.rb
roar-0.8.1 test/dummy/app/representers/representer/xml/album.rb
roar-0.8.0 test/dummy/app/representers/representer/xml/album.rb