Sha256: 4b0dfc5d03252d5c30d21baeea43413f8e234a9b2caba7586644b85a2cfdac3b
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
module ItunesApi module Music # Artist or Band from the Apple catalog class Artist attr_reader :name, :artist_id, :albums def initialize(data) @name = data['artistName'] @artist_id = data['amgArtistId'] @albums = Album.build(data[:albums]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
itunes_api-0.3.1 | lib/itunes_api/music/artist.rb |
itunes_api-0.3 | lib/itunes_api/music/artist.rb |