Sha256: c72b5ce2a1500961f751b728c2247857e8a9dd9bd8035baffec21e28a129db82
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 Bytes
Contents
module Beatport module Catalog class Artist < Item has_many :genres, Genre has_many :subgenres, Genre has_one :images, Images has_many :top_downloads, Track # has_many :featured_releases, Release def self.find(*args) Client.retrieve 'artists', Artist, *args end def self.all(options = {}) Client.retrieve 'artists', Artist, options end def top_downloads(options = {}) @top_downloads ||= Track.most_popular_for_artist(id, options) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.5 | lib/beatport/catalog/artist.rb |
beatport-0.1.3 | lib/beatport/catalog/artist.rb |
beatport-0.1.2 | lib/beatport/catalog/artist.rb |