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



35
36
37
# File 'lib/quandl/format/dataset.rb', line 35

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

.each_in_file(path, &block) ⇒ Object



23
24
25
# File 'lib/quandl/format/dataset.rb', line 23

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

.each_line(interface, &block) ⇒ Object



19
20
21
# File 'lib/quandl/format/dataset.rb', line 19

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

.load(input) ⇒ Object



27
28
29
# File 'lib/quandl/format/dataset.rb', line 27

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

.load_from_file(path) ⇒ Object



31
32
33
# File 'lib/quandl/format/dataset.rb', line 31

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