Sha256: dd969ed9a4cffb4b1eddaf131ac979074f9254d56b816aeb7d4f851c00847c68

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])

require 'pry'
require "quandl/client"
require "quandl/fabricate"
require 'securerandom'

include Quandl::Client

Quandl::Client.use 'http://quandl.com/api/'
Quandl::Client.token = ENV['QUANDL_USER_TOKEN']

# create dataset
d = Dataset.new
d.code = "TEST_#{SecureRandom.hex[0..10]}".upcase
d.name = 'Blake Test Dataset'
d.save

# update dataset's data
new_data = Quandl::Fabricate::Data.rand( rows: 10, columns: 2, nils: false ).to_date.to_csv
d.data = new_data
d.save

binding.pry

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quandl_client-2.1.4 examples/client.rb
quandl_client-2.1.3 examples/client.rb