Sha256: fc88e57ab03a6b5a845eeb8598b5d33d16ccc0d29860b9bd33822ff2bd3d3737

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 Bytes

Contents

module Beatport
  module Catalog  
    class Chart < Item
      has_one :audio_format_fee, AudioFormatFee      
      has_many :genres, Genre
      has_one :images, Images
      has_one :price, Price
      has_many :tracks, Track
    
      def self.find(id)
        Client.retrieve('charts/detail', Chart, :id => id)
      end
  
      def self.all(*args)
        Client.retrieve 'charts', Chart, *args
      end    
    
      def self.overview
        ChartOverview.get
      end
    
      def self.featured(*args)
        Client.retrieve('featured/charts', Chart, *args)
      end    
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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