Sha256: 4790b2847f00b77acd478179e12b225a2cbcd53a40a4c9a6e79632ac07e0cf12

Contents?: true

Size: 663 Bytes

Versions: 7

Compression:

Stored size: 663 Bytes

Contents

# http://api.beatport.com/index.html
require 'ostruct'
require 'httparty'
require 'money'

module Beatport
  autoload :Catalog,         'beatport/catalog'
  autoload :Client,          'beatport/client'
  autoload :Collection,      'beatport/collection'
  autoload :Item,            'beatport/item'
  autoload :Price,           'beatport/price'
  autoload :Support,         'beatport/support'
  
  def self.const_missing(name)
    if Beatport::Catalog.const_defined?(name)
      $stderr << "Beatport::#{name} has moved to Beatport::Catalog::#{name}, please ajust your code accordingly"
      Beatport::Catalog.const_get(name)
    else
      super
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
beatport-0.1.10 lib/beatport.rb
beatport-0.1.9 lib/beatport.rb
beatport-0.1.8 lib/beatport.rb
beatport-0.1.7 lib/beatport.rb
beatport-0.1.6 lib/beatport.rb
beatport-0.1.5 lib/beatport.rb
beatport-0.1.3 lib/beatport.rb