Sha256: 6df6457c94c007ce4a4980fdac7e5021c31c8f3f1a94f3ef6ae3106fab9b83c7

Contents?: true

Size: 411 Bytes

Versions: 7

Compression:

Stored size: 411 Bytes

Contents

module ItunesApi
  module Music
    # Album Tracklist resulting from a specific lookup
    class AlbumLookup
      attr_reader_init :album_id, :store
      selfie :tracklist

      def tracklist
        return [] unless songs_data

        Track.build(songs_data)
      end

      private

      def songs_data
        @songs_data ||= Requests::AlbumTracklist.songs(album_id, store)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
itunes_api-1.4.1 lib/itunes_api/music/album_lookup.rb
itunes_api-1.4.0 lib/itunes_api/music/album_lookup.rb
itunes_api-1.3.1 lib/itunes_api/music/album_lookup.rb
itunes_api-1.3 lib/itunes_api/music/album_lookup.rb
itunes_api-1.2.1 lib/itunes_api/music/album_lookup.rb
itunes_api-1.2.0 lib/itunes_api/music/album_lookup.rb
itunes_api-1.1.0 lib/itunes_api/music/album_lookup.rb