# Quandl::Cassinatra ```ruby require 'quandl/cassinatra' Quandl::Cassinatra.use 'http://192.168.33.10:8983/wikiposit_cassandra/' include Quandl::Cassinatra ``` ### Quandl::Cassinatra::Model::Dataset #### Find / Scope ```ruby require 'quandl/cassinatra' d = Quandl::Cassinatra::Model::Dataset.limit(10).transform(:rdiff).collapse(:weekly).find(293) d.data_table => [...] d.column_ids => [1,2,3] d.columns_count d.created_at d.frequency d.rows_count d.type d.updated_at ``` #### Create ```ruby require 'quandl/cassinatra' d = Quandl::Cassinatra::Model::Dataset.new d.id = 5893853 d.data = Quandl::Data::Random.table(rows: 10, columns: 4, nils: false).to_csv d.save d = Quandl::Cassinatra::Model::Dataset.find(5893853) d.data_table => [...] ``` ### Quandl::Cassinatra::Model::Multiset ```ruby require 'quandl/cassinatra' m = Quandl::Cassinatra::Model::Multiset.with_columns('5893853.1,293.2').limit(10).collapse(:monthly) m.data => [...] ```