Sha256: af8609a5385425ff9eac11d34a503fd907e28e69e97f966bfdf7877730b2f16b

Contents?: true

Size: 689 Bytes

Versions: 1

Compression:

Stored size: 689 Bytes

Contents

module Beatport
  module Catalog
    class Label < Item
      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
      
      def self.find(id)
        Client.retrieve('labels/detail', Label, :id => id)
      end

      def self.all(*args)
        Client.retrieve('labels', Label, *args)
      end
    
      def self.featured(*args)
        Client.retrieve('featured/labels', Label, *args)
      end    
    
      def releases(options)
        options[:label_id] = id
        Release.all(options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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