Class: Quandl::Client::Dataset::Data

Inherits:
Base
  • Object
show all
Defined in:
lib/quandl/client/models/dataset/data.rb

Instance Method Summary collapse

Methods inherited from Base

her_api, models, models_use_her_api!, url_with_version, use

Instance Method Details

#dataObject



40
41
42
# File 'lib/quandl/client/models/dataset/data.rb', line 40

def data
  read_data
end

#data=(value) ⇒ Object



44
45
46
# File 'lib/quandl/client/models/dataset/data.rb', line 44

def data=(value)
  write_data(value)
end

#read_dataObject (protected)



50
51
52
# File 'lib/quandl/client/models/dataset/data.rb', line 50

def read_data
  Quandl::Data.new( read_attribute(:data) )
end

#write_data(value) ⇒ Object (protected)



54
55
56
# File 'lib/quandl/client/models/dataset/data.rb', line 54

def write_data(value )
  write_attribute(:data, Quandl::Data.new(value).to_csv )
end