module ItunesApi module Music # Artist or Band resulting from a specific lookup class ArtistLookup attr_reader_init :artist_id, :store selfie :artist, :store def artist build_artist end private def build_artist return lookup unless lookup Artist.new(lookup, store) end def lookup @lookup ||= Requests::Lookup.artist_with_albums(artist_id, store) end end end end