$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'pry' require "quandl/client" include Quandl::Client Quandl::Client.use ENV['QUANDL_API_HOST'] # Quandl::Client.use 'http://staging.quandl.com/api/' Quandl::Client.token = ENV['QUANDL_USER_TOKEN'] datasets = Dataset.query('water').all binding.pry