Sha256: e40db14871cc64f2f83fc8bba54c7e6a1f09d9db0e39bbee8f5015153a856fba

Contents?: true

Size: 759 Bytes

Versions: 6

Compression:

Stored size: 759 Bytes

Contents

require 'quandl/client/dataset/to_qdf'

module Quandl
module Format

class Dataset

  # classes
  require_relative 'dataset/load'
  require_relative 'dataset/dump'
  
  # concerns
  require_relative 'dataset/attributes'
  require_relative 'dataset/client'
  
  include Quandl::Format::Dataset::Attributes
  include Quandl::Format::Dataset::Client

  class << self
    
    def each_line(interface, &block)
      Load.each_line(interface, &block)
    end
    
    def each_in_file(path, &block)
      Load.each_in_file(path, &block)
    end

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

    def load_from_file(path)
      Load.string(File.read(path))
    end
    
    def dump(datasets)
      Dump.collection(datasets)
    end

  end
  

end  
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quandl_format-0.5.1 lib/quandl/format/dataset.rb
quandl_format-0.5.0 lib/quandl/format/dataset.rb
quandl_format-0.4.3 lib/quandl/format/dataset.rb
quandl_format-0.4.2 lib/quandl/format/dataset.rb
quandl_format-0.4.1 lib/quandl/format/dataset.rb
quandl_format-0.4.0 lib/quandl/format/dataset.rb