Class: Beatport::Catalog::Artist

Inherits:
Item
  • Object
show all
Includes:
Support::Url
Defined in:
lib/beatport/catalog/artist.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Support::Url

#url

Methods inherited from Item

#[], #associate, associations, find_by_name, has_many, has_one, #id, #initialize, lazy_accessor, #type

Constructor Details

This class inherits a constructor from Beatport::Item

Class Method Details

.all(options = {}) ⇒ Object



13
14
15
# File 'lib/beatport/catalog/artist.rb', line 13

def all(options = {})
  Client.retrieve 'artists', Artist, options
end

.find(*args) ⇒ Object



17
18
19
# File 'lib/beatport/catalog/artist.rb', line 17

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

.name_facetObject



21
22
23
# File 'lib/beatport/catalog/artist.rb', line 21

def name_facet
  :artist_name
end

Instance Method Details

#top_downloads(options = {}) ⇒ Object



26
27
28
# File 'lib/beatport/catalog/artist.rb', line 26

def top_downloads(options = {})
  Track.most_popular_for_artist(id, options)
end