Sha256: 8cd9ed2a16a2036e523463dfcf090f56ab867ca3d4ed1d7b038beaa11f392f63

Contents?: true

Size: 719 Bytes

Versions: 11

Compression:

Stored size: 719 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
quandl_format-0.3.0 lib/quandl/format/dataset.rb
quandl_format-0.2.8 lib/quandl/format/dataset.rb
quandl_format-0.2.7 lib/quandl/format/dataset.rb
quandl_format-0.2.6 lib/quandl/format/dataset.rb
quandl_format-0.2.5 lib/quandl/format/dataset.rb
quandl_format-0.2.4 lib/quandl/format/dataset.rb
quandl_format-0.2.3 lib/quandl/format/dataset.rb
quandl_format-0.2.2 lib/quandl/format/dataset.rb
quandl_format-0.2.1 lib/quandl/format/dataset.rb
quandl_format-0.2.0 lib/quandl/format/dataset.rb
quandl_format-0.1.8 lib/quandl/format/dataset.rb