module Beatport module Catalog class Label < Item include Support::Url has_many :genres, Genre has_many :subgenres, Genre has_many :top_downloads, Track has_many :featured_releases, Release has_many :most_popular_releases, Release has_one :images, Images class << self def all(options = {}) Client.retrieve 'labels', Label, options end def featured(*args) Client.retrieve 'featured/labels', Label, *args end def find(*args) Client.retrieve 'labels', Label, *args end def name_facet :label_name end end def releases(options) options[:label_id] = id Release.all(options) end end end end