class FanartTv::Artist

Private Class Methods

find(id, type="all", sort=1, limit=1) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 40
def find(id, type="all", sort=1, limit=1)
  Client.load(:artist, { musicbrainz_id: id, type: type, sort: sort, limit: limit}, {
    binding: FanartTv::Bindings::Artist,
    create_model: FanartTv::Artist,
    url: FanartTv.config.webservice_url_artist
  })
end

Private Instance Methods

albums=(value) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 26
def albums=(value)
  @albums = []
  (value || {}).each {|k,v| @albums << FanartTv::Album.new(v.merge({mbid_id: k})) }
end
artistbackground=(value) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 18
def artistbackground=(value)
  @artistbackground = (value || []).map {|ml| FanartTv::Photo.new(ml) }
end
artistthumb=(value) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 22
def artistthumb=(value)
  @artistthumb = (value || []).map {|ml| FanartTv::Photo.new(ml) }
end
hdmusiclogo=(value) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 31
def hdmusiclogo=(value)
  @hdmusiclogo = (value || []).map {|ml| FanartTv::Photo.new(ml) }
end
musicbanner=(value) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 35
def musicbanner=(value)
  @musicbanner = (value || []).map {|ml| FanartTv::Photo.new(ml) }
end
musiclogo=(value) click to toggle source
# File lib/fanart_tv/models/artist.rb, line 14
def musiclogo=(value)
  @musiclogo = (value || []).map {|ml| FanartTv::Photo.new(ml) }
end