crunchbase-ruby-library 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/crunchbase/model/fund.rb +4 -4
- data/lib/crunchbase/model/fund_raise.rb +8 -8
- data/lib/crunchbase/model/organization.rb +1 -1
- data/lib/crunchbase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50429f19d626ea589e14ca891a36f1433082697b
|
|
4
|
+
data.tar.gz: 5b228ba00c4de77c36111bde57b764d23520b640
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 689955b6f2f7912cd06a2f98428eab1faa097fcee0eae750bdf893fed09ab68a214aa94c2b0352c3b6586d641bce01c7d2f2cc094b87b49b6ecf08bd1d5d62ef
|
|
7
|
+
data.tar.gz: 055b603d5df5f9c4e6872f7d978a80b24e8708c29c79a8cfb62ddf33a9fcf6681ebac6a89fb2a8edaed17dd46b2e0bf72bbb9508085d076b54b4342bd54f8f5c
|
data/.gitignore
CHANGED
|
@@ -9,11 +9,11 @@ module Crunchbase::Model
|
|
|
9
9
|
|
|
10
10
|
# attr_reader :venture_firm, :investor, :images, :videos, :news
|
|
11
11
|
|
|
12
|
-
# attr_reader :venture_firm_total_items, :investor_total_items, :images_total_items, :videos_total_items, :news_total_items
|
|
13
|
-
|
|
12
|
+
# attr_reader :venture_firm_total_items, :investor_total_items, :images_total_items, :videos_total_items, :news_total_items
|
|
13
|
+
|
|
14
14
|
def property_keys
|
|
15
15
|
%w[
|
|
16
|
-
api_path web_path name announced_on announced_on_trust_code
|
|
16
|
+
api_path web_path name announced_on announced_on_trust_code
|
|
17
17
|
money_raised money_raised_currency_code money_raised_usd created_at updated_at
|
|
18
18
|
]
|
|
19
19
|
end
|
|
@@ -23,4 +23,4 @@ module Crunchbase::Model
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
end
|
|
26
|
-
end
|
|
26
|
+
end
|
|
@@ -6,15 +6,15 @@ module Crunchbase::Model
|
|
|
6
6
|
RESOURCE_LIST = 'funds'
|
|
7
7
|
|
|
8
8
|
attr_reader :name, :path, :created_at, :updated_at
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
def initialize(json)
|
|
11
|
-
property_keys.each { |v|
|
|
12
|
-
instance_variable_set("@#{v}", json[v] || nil)
|
|
13
|
-
}
|
|
11
|
+
property_keys.each { |v|
|
|
12
|
+
instance_variable_set("@#{v}", json[v] || nil)
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
-
%w[created_at updated_at].each { |v|
|
|
16
|
-
instance_variable_set("@#{v}", Time.at(json[v]))
|
|
17
|
-
}
|
|
15
|
+
%w[created_at updated_at].each { |v|
|
|
16
|
+
instance_variable_set("@#{v}", Time.at(json[v]))
|
|
17
|
+
}
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def property_keys
|
|
@@ -22,4 +22,4 @@ module Crunchbase::Model
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
end
|
|
25
|
-
end
|
|
25
|
+
end
|
|
@@ -54,7 +54,7 @@ module Crunchbase::Model
|
|
|
54
54
|
set_relationships_object(Crunchbase::Model::Acquisition, 'acquisitions', relationships['acquisitions'])
|
|
55
55
|
set_relationships_object(Crunchbase::Model::AcquiredBy, 'acquired_by', relationships['acquired_by'])
|
|
56
56
|
set_relationships_object(Crunchbase::Model::Ipo, 'ipo', relationships['ipo'])
|
|
57
|
-
set_relationships_object(Crunchbase::Model::
|
|
57
|
+
set_relationships_object(Crunchbase::Model::Fund, 'funds', relationships['funds'])
|
|
58
58
|
set_relationships_object(Crunchbase::Model::Website, 'websites', relationships['websites'])
|
|
59
59
|
set_relationships_object(Crunchbase::Model::Image, 'images', relationships['images'])
|
|
60
60
|
set_relationships_object(Crunchbase::Model::Video, 'videos', relationships['videos'])
|
data/lib/crunchbase/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crunchbase-ruby-library
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Encore Shao
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|