Sha256: da85e09022c660d37169ce625a52a6159a04e5372321264b9d8b8dfe3aca9fa6

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

require 'echonest/version'
require 'echonest/traditional_api_methods'
require 'echonest/api'
require 'echonest/analysis'
require 'echonest/response'
require 'echonest/element/section'
require 'echonest/element/bar'
require 'echonest/element/beat'
require 'echonest/element/segment'
require 'echonest/element/loudness'
require 'echonest/element/tatum'

def Echonest(api_key) Echonest::Api.new(api_key) end

module Echonest
  extend self

  def debug(obj)
    return unless debug?

    if obj.is_a?(String)
      puts obj
    else
      puts obj.inspect
    end
  end

  # MOAR DEBUGGING! *just for now
  def debug?
    true || ENV['DEBUG']
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bassnode-ruby-echonest-0.1.3 lib/echonest.rb