Class: FanartTv::Artist
- Inherits:
-
Object
- Object
- FanartTv::Artist
- Includes:
- BaseModel
- Defined in:
- lib/fanart_tv/models/artist.rb
Class Method Summary collapse
Methods included from BaseModel
Class Method Details
.find(id, type = "all", sort = 1, limit = 1) ⇒ Object
40 41 42 43 44 45 46 |
# 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 |