Sha256: cb69b3aac42a3e3ad35188b1f728bf38fa4c5ac6e994dc07fd102b36088222be

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 Bytes

Contents

module Quandl::Data::Enumerator
  extend ActiveSupport::Concern
  
  included do
    delegate *Array.forwardable_methods, to: :data_array
  
    delegate :to_json, :as_json, to: :data_array
    
    attr_accessor :pristine_data
  end
  
  def data_array
    @data_array ||= clean( pristine_data )
  end

  def data_array=(data)
    @data_array = clean(data)
  end
  
  def data_array?
    @data_array.present?
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
quandl_data-1.3.9 lib/quandl/data/enumerator.rb
quandl_data-1.3.8 lib/quandl/data/enumerator.rb
quandl_data-1.3.7 lib/quandl/data/enumerator.rb
quandl_data-1.3.6 lib/quandl/data/enumerator.rb
quandl_data-1.3.5 lib/quandl/data/enumerator.rb
quandl_data-1.3.4 lib/quandl/data/enumerator.rb
quandl_data-1.3.3 lib/quandl/data/enumerator.rb
quandl_data-1.3.2 lib/quandl/data/enumerator.rb
quandl_data-1.3.1 lib/quandl/data/enumerator.rb