Class: Quandl::Client::Dataset::Data
- Inherits:
-
Base
- Object
- Base
- Quandl::Client::Dataset::Data
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
#data ⇒ Object
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_data ⇒ Object
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
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
|