crunchbase_academic 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crunchbase_academic/organization.rb +2 -1
- data/lib/crunchbase_academic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f3acde2bd73d2f10bef29fea087397c17d81d96
|
4
|
+
data.tar.gz: 1120caa3bfebf04a8bd3283f6d62591407e6d509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f94e45260c48718a530003ad5c799438088f071e08c1791b0edf1c9a38f84b9cf06ab080c7e107300b594610f5fce51fc12bab2e052b7df021ab1912b27d4a4a
|
7
|
+
data.tar.gz: 2b3e02fb49918853a8f68bc7638a118d192fd58cdb8bc5c62c4eecf10b289ed70097b08912e28e5cefe43bb44e2ebe7af9db559d82d411926dabfbdcc6e46f51
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CrunchbaseAcademic
|
2
2
|
class Organization < Common
|
3
3
|
OBJECT_NAME = 'organization'
|
4
|
-
attr_reader :total_funding_usd, :products, :news, :founded_on, :founded_on_year
|
4
|
+
attr_reader :total_funding_usd, :products, :news, :founded_on, :founded_on_year, :funding_rounds
|
5
5
|
|
6
6
|
def initialize(json)
|
7
7
|
@founded_on ||= json['data']['properties']['founded_on']
|
@@ -9,6 +9,7 @@ module CrunchbaseAcademic
|
|
9
9
|
@total_funding_usd ||= json['data']['properties']['total_funding_usd']
|
10
10
|
@products ||= json['data']['relationships']['products']
|
11
11
|
@news ||= json['data']['relationships']['news']
|
12
|
+
@funding_rounds ||= json['data']['relationships']['funding_rounds']
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|