Sha256: 128753d35f6b5b4e17c52d00bb0ab98eae426192c7e77b2396d340d051b1d088
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
module ItunesApi module Music # Artist or Band from the Apple catalog class Artist def initialize(data) @data = data end def albums @albums ||= Album.build(data[:albums]) end def apple_id @apple_id ||= data[:artistId] end def name @name ||= data[:artistName] end private attr_reader :data end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itunes_api-0.7.0 | lib/itunes_api/music/artist.rb |