Sha256: 1c709d98943df304ac1f2b0f1b5dade5bcc6d699d9f10fb02b9829afafbdbe2d

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
roar-0.11.7 test/dummy/app/representers/representer/xml/album.rb
roar-0.11.6 test/dummy/app/representers/representer/xml/album.rb
roar-0.11.5 test/dummy/app/representers/representer/xml/album.rb