Sha256: a6beb9c5548cce4dd952274ae36cf4a58caf8781d71be94c87c44cfc59482be8

Contents?: true

Size: 786 Bytes

Versions: 6

Compression:

Stored size: 786 Bytes

Contents

# http://api.beatport.com/index.html
require 'ostruct'
require 'signet/oauth_1/client'
require 'money'

module Beatport
  autoload :Catalog,         'beatport/catalog'
  autoload :Config,          'beatport/config'
  autoload :Client,          'beatport/client'
  autoload :Collection,      'beatport/collection'
  autoload :Item,            'beatport/item'
  autoload :Price,           'beatport/price'
  autoload :Support,         'beatport/support'
  autoload :Error,           'beatport/error'

  extend Config
  
  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

6 entries across 6 versions & 1 rubygems

Version Path
beatport-0.4.0 lib/beatport.rb
beatport-0.3.0 lib/beatport.rb
beatport-0.2.3 lib/beatport.rb
beatport-0.2.2 lib/beatport.rb
beatport-0.2.1 lib/beatport.rb
beatport-0.2.0 lib/beatport.rb