module Quandl

Constants

API_URI
Favourites
VERSION

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/quandl/configuration.rb, line 14
def self.configure
  yield configuration
end
parse(data, format) click to toggle source
# File lib/quandl/parse.rb, line 8
def self.parse(data, format)
  case format
  when :json
    JSON.parse(data, {
      symbolize_names: true
    })
  when :csv
    CSV.parse(data, {
      headers: true,
      header_converters: :symbol,
      converters: [:all, :blank_to_nil]
    }).map(&:to_hash)
  else data
  end
end
reset() click to toggle source
# File lib/quandl/configuration.rb, line 10
def self.reset
  @configuration = Configuration.new
end