Sha256: df67d8c383404a45b6b90f20eaef559b528c3e4cfc5b0eb1632bc58136d8ef60

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

module Quandl
module Client

class Dataset
  
  def to_qdf
    return if !exists? && status != 0
    Quandl::Format::Dataset.new( qdf_attributes ).to_qdf
  end
  
  def qdf_attributes
    Quandl::Format::Dataset.attribute_names.inject({}) do |memo, name|
      memo[name] = self.send(name) if self.respond_to?(name)
      memo
    end
  end
  
end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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