Sha256: f65ef34be10079a510ce03853186d72c54766b8a61aea42da42ab52c73d42de5

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 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(id)
        Client.retrieve('artists/detail', Artist, :id => id)
      end

      def self.all(*args)
        Client.retrieve 'artists', Artist, *args
      end
    
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beatport-0.1.1 lib/beatport/catalog/artist.rb