Class: Quandl::Format::Dataset

Inherits:
Object
  • Object
show all
Includes:
Attributes, Client
Defined in:
lib/quandl/format/dataset.rb,
lib/quandl/format/dataset/client.rb,
lib/quandl/format/dataset/attributes.rb

Defined Under Namespace

Modules: Attributes, Client Classes: Dump, Load

Class Method Summary collapse

Methods included from Client

#client, #client=, #full_url, #human_error, #human_errors, #upload

Methods included from Attributes

#assign_attributes, #attributes, #column_names, #column_names=, #data=, #description=, #full_code, #full_code=, #initialize, #meta_attributes, #to_qdf

Class Method Details

.dump(datasets) ⇒ Object



37
38
39
# File 'lib/quandl/format/dataset.rb', line 37

def dump(datasets)
  Dump.collection(datasets)
end

.each_in_file(path, &block) ⇒ Object



25
26
27
# File 'lib/quandl/format/dataset.rb', line 25

def each_in_file(path, &block)
  Load.each_in_file(path, &block)
end

.each_line(interface, &block) ⇒ Object



21
22
23
# File 'lib/quandl/format/dataset.rb', line 21

def each_line(interface, &block)
  Load.each_line(interface, &block)
end

.load(input) ⇒ Object



29
30
31
# File 'lib/quandl/format/dataset.rb', line 29

def load(input)
  Load.string(input)
end

.load_from_file(path) ⇒ Object



33
34
35
# File 'lib/quandl/format/dataset.rb', line 33

def load_from_file(path)
  Load.string(File.read(path))
end