Sha256: 86a58bce9d8bd1e6229e8568638b6339f54b8e02a342145314606ae88052909f
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
module ItunesApi module Music module Results # Wrapper for album search results. class Album attr_reader_init :data, :store private :data def artwork @artwork ||= data['artworkUrl100'] end def attributes [artwork, collection_id, genre, name, release_on, store] end def collection_id @collection_id ||= data['collectionId'] end def genre @genre ||= data['primaryGenreName'] end def name @name ||= data['collectionName'] end def release_on @release_on ||= Date.parse(data['releaseDate']) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itunes_api-2.0.0 | lib/itunes_api/music/results/album.rb |