quandl_cassinatra 0.1.16 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/UPGRADE.md +5 -0
- data/lib/quandl/cassinatra/model/dataset.rb +10 -2
- data/lib/quandl/cassinatra/version.rb +1 -1
- metadata +2 -2
data/UPGRADE.md
CHANGED
@@ -9,10 +9,18 @@ class Dataset
|
|
9
9
|
include Concerns::Properties
|
10
10
|
include Searchable
|
11
11
|
|
12
|
-
attributes :id, :column_ids, :data, :trim_start, :trim_end
|
12
|
+
attributes :id, :column_ids, :data, :trim_start, :trim_end, :columns
|
13
13
|
|
14
14
|
delegate :columns_count, :created_at, :frequency, :rows_count, :type, :updated_at, to: :dataset_attribute
|
15
|
-
|
15
|
+
|
16
|
+
def column_units
|
17
|
+
@column_units ||= columns.collect{|c| c['units'] }
|
18
|
+
end
|
19
|
+
|
20
|
+
def column_names
|
21
|
+
@column_names ||= columns.collect{|c| c['name'] }
|
22
|
+
end
|
23
|
+
|
16
24
|
def data_table
|
17
25
|
@data_table ||= Data::Table.new( self.data || [] )
|
18
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quandl_cassinatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|