Sha256: 08f2b906d29dfa25bf429f166be9428c7a65ceaf7094c7186db864f9ae684ea5

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 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 ENV['QUANDL_API_HOST']
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

5 entries across 5 versions & 1 rubygems

Version Path
quandl_client-2.3.1 examples/create.rb
quandl_client-2.3.0 examples/create.rb
quandl_client-2.2.2 examples/create.rb
quandl_client-2.2.1 examples/create.rb
quandl_client-2.2.0 examples/create.rb