crunchbase_v2 1.1.4 → 1.1.5
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.
data/lib/crunchbase/cb_entity.rb
CHANGED
@@ -53,16 +53,16 @@ module Crunchbase
|
|
53
53
|
return [] if list.nil?
|
54
54
|
|
55
55
|
list['items'].map do |l|
|
56
|
-
self.new l
|
57
|
-
end
|
56
|
+
self.new l if l.kind_of?(Hash)
|
57
|
+
end.compact
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.parsing_from_list(list)
|
61
61
|
return [] if list.nil?
|
62
62
|
|
63
63
|
list.map do |l|
|
64
|
-
self.new l
|
65
|
-
end
|
64
|
+
self.new l if l.kind_of?(Hash)
|
65
|
+
end.compact
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.total_items_from_list(list)
|
@@ -11,7 +11,9 @@ module Crunchbase
|
|
11
11
|
attr_reader :type_name, :name, :post_money_valuation_currency_code, :permalink, :funding_type,
|
12
12
|
:money_raised_usd, :announced_on_trust_code, :money_raised,
|
13
13
|
:money_raised_currency_code, :series, :announced_on, :canonical_currency_code,
|
14
|
-
:created_at, :updated_at, :announced_on_year, :announced_on_day, :announced_on_month
|
14
|
+
:created_at, :updated_at, :announced_on_year, :announced_on_day, :announced_on_month,
|
15
|
+
:pre_money_valuation_currency_code, :pre_money_valuation_usd, :pre_money_valuation,
|
16
|
+
:post_money_valuation_usd, :target_money_raised_usd
|
15
17
|
|
16
18
|
attr_reader :investments, :funded_organizations, :new_items
|
17
19
|
|
@@ -45,6 +47,12 @@ module Crunchbase
|
|
45
47
|
@money_raised_currency_code = properties['money_raised_currency_code']
|
46
48
|
@post_money_valuation_currency_code = properties['post_money_valuation_currency_code']
|
47
49
|
|
50
|
+
@post_money_valuation_usd = properties['post_money_valuation_usd']
|
51
|
+
@target_money_raised_usd = properties['target_money_raised_usd']
|
52
|
+
@pre_money_valuation_usd = properties['pre_money_valuation_usd']
|
53
|
+
@pre_money_valuation = properties['pre_money_valuation']
|
54
|
+
@pre_money_valuation_currency_code = properties['pre_money_valuation_currency_code']
|
55
|
+
|
48
56
|
@investments_list = relationships['investments']
|
49
57
|
@funded_organizations_list = relationships['funded_organization']
|
50
58
|
@new_items_list = relationships['news']
|
@@ -14,7 +14,8 @@ module Crunchbase
|
|
14
14
|
:number_of_employees, :stock_symbol, :stock_exchange, :uuid, :closed_on_trust_code,
|
15
15
|
:created_at, :updated_at, :logo_url, :closed_on_day, :closed_on_month,
|
16
16
|
:closed_on_year, :founded_on_day, :founded_on_month, :founded_on_year,
|
17
|
-
:role_investor, :founded_on_trust_code, :phone_number
|
17
|
+
:role_investor, :founded_on_trust_code, :phone_number, :num_employees_max,
|
18
|
+
:num_employees_min, :secondary_role_for_profit
|
18
19
|
|
19
20
|
attr_reader :past_teams, :sub_organizations, :current_teams, :acquisitions, :competitors,
|
20
21
|
:offices, :headquarters, :funding_rounds, :categories, :customers, :investments,
|
@@ -63,9 +64,13 @@ module Crunchbase
|
|
63
64
|
@number_of_employees = properties['number_of_employees']
|
64
65
|
@stock_symbol = properties['stock_symbol']
|
65
66
|
@stock_exchange = properties['stock_exchange']
|
67
|
+
@num_employees_max = properties['num_employees_max']
|
68
|
+
@num_employees_min = properties['num_employees_min']
|
66
69
|
@investors_list = properties['investors']
|
67
70
|
@created_at = Time.at(properties['created_at']).utc
|
68
71
|
@updated_at = Time.at(properties['updated_at']).utc
|
72
|
+
|
73
|
+
@secondary_role_for_profit = properties['secondary_role_for_profit']
|
69
74
|
|
70
75
|
@past_teams_list = relationships['past_team']
|
71
76
|
@sub_organizations_list = relationships['sub_organizations']
|
data/lib/crunchbase/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crunchbase_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-04-
|
14
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -208,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
segments:
|
210
210
|
- 0
|
211
|
-
hash:
|
211
|
+
hash: -1279365941116901317
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
none: false
|
214
214
|
requirements:
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: '0'
|
218
218
|
segments:
|
219
219
|
- 0
|
220
|
-
hash:
|
220
|
+
hash: -1279365941116901317
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
223
|
rubygems_version: 1.8.23.2
|