class Beatport::Catalog::Track
Public Class Methods
all(options = {})
click to toggle source
Returns all the tracks matching the criterea
# File lib/beatport/catalog/track.rb, line 24 def self.all(options = {}) Client.retrieve 'tracks', Track, options end
find(key)
click to toggle source
Returns the track with the given id
# File lib/beatport/catalog/track.rb, line 19 def self.find(key) Client.retrieve 'tracks', Track, :key => key end
most_popular(options = {})
click to toggle source
# File lib/beatport/catalog/track.rb, line 28 def self.most_popular(options = {}) Client.retrieve 'most-popular', Track, options end
most_popular_for_artist(id, options = {})
click to toggle source
# File lib/beatport/catalog/track.rb, line 38 def self.most_popular_for_artist(id, options = {}) options[:id] = id options[:collection] = true Client.retrieve "most-popular/artist", Track, options end
most_popular_for_genre(id, options = {})
click to toggle source
# File lib/beatport/catalog/track.rb, line 32 def self.most_popular_for_genre(id, options = {}) options[:id] = id options[:collection] = true Client.retrieve "most-popular/genre", Track, options end
most_popular_for_label(id, options = {})
click to toggle source
# File lib/beatport/catalog/track.rb, line 44 def self.most_popular_for_label(id, options = {}) options[:id] = id options[:collection] = true Client.retrieve "most-popular/label", Track, options end