Sha256: 87a2e22457491914818e0f024facf8d18541244db1c505b9b326fa81c40d5001

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

collection(@albums) do |collection|
  
  collection.id "1"
  collection.author do |author|
     author.mais_coisa
  end
  collection.values do |value|
    value.id      "1"
    value.title   "Index Album feed spec"
    value.updated Time.now
  end

  collection.members do |member, album|
    member.values("xmlns:albums" => "http://localhost/albums") do |value|
      value.id      album.id.to_s
      value.title   album.title
      value.updated album.updated_at

      value["albums"].length_in_minutes "#{album.length}m"
      value["albums"].description       album.description
    end

    member.link(:artists, album_artists_url(album))

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 tests/app/views/albums/index.tokamak
restfulie-1.1.1 tests/app/views/albums/index.tokamak
restfulie-1.1.0 tests/app/views/albums/index.tokamak
restfulie-nosqlite-1.0.3 tests/app/views/albums/index.tokamak
restfulie-1.0.3 tests/app/views/albums/index.tokamak