crunchbase_v2 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crunchbase/api.rb +1 -1
- data/lib/crunchbase/board_members_and_advisor.rb +1 -0
- data/lib/crunchbase/category.rb +3 -2
- data/lib/crunchbase/competitor.rb +1 -1
- data/lib/crunchbase/current_team.rb +1 -1
- data/lib/crunchbase/customer.rb +1 -1
- data/lib/crunchbase/founder.rb +1 -0
- data/lib/crunchbase/funding_round.rb +1 -1
- data/lib/crunchbase/headquarter.rb +1 -0
- data/lib/crunchbase/image.rb +2 -0
- data/lib/crunchbase/investment.rb +1 -1
- data/lib/crunchbase/ipo.rb +1 -0
- data/lib/crunchbase/new_item.rb +2 -0
- data/lib/crunchbase/office.rb +1 -1
- data/lib/crunchbase/organization.rb +7 -7
- data/lib/crunchbase/past_team.rb +1 -0
- data/lib/crunchbase/person.rb +1 -1
- data/lib/crunchbase/primary_image.rb +1 -0
- data/lib/crunchbase/product.rb +1 -1
- data/lib/crunchbase/relationship.rb +1 -0
- data/lib/crunchbase/sub_organization.rb +1 -0
- data/lib/crunchbase/version.rb +1 -1
- data/lib/crunchbase/website.rb +2 -0
- metadata +1 -1
data/lib/crunchbase/api.rb
CHANGED
@@ -11,8 +11,8 @@ end
|
|
11
11
|
require 'timeout'
|
12
12
|
|
13
13
|
module Crunchbase
|
14
|
-
|
15
14
|
class API
|
15
|
+
|
16
16
|
SUPPORTED_ENTITIES = ['organizations', 'organization', 'people', 'person', 'products', 'product', 'funding_rounds', 'funding-round', 'acquisition', 'ipo', 'fund-raise', 'locations', 'categories', 'offices', 'customers']
|
17
17
|
|
18
18
|
@timeout_limit = 60
|
data/lib/crunchbase/category.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
# http://api.crunchbase.com/v/2/organization/facebook/categories
|
3
|
+
# http://api.crunchbase.com/v/2/organization/facebook/categories
|
4
|
+
|
4
5
|
module Crunchbase
|
5
6
|
class Category < CBEntity
|
7
|
+
|
6
8
|
RESOURCE_NAME = 'category'
|
7
9
|
RESOURCE_LIST = 'categories'
|
8
10
|
|
@@ -19,5 +21,4 @@ module Crunchbase
|
|
19
21
|
end
|
20
22
|
|
21
23
|
end
|
22
|
-
|
23
24
|
end
|
data/lib/crunchbase/customer.rb
CHANGED
data/lib/crunchbase/founder.rb
CHANGED
data/lib/crunchbase/image.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
module Crunchbase
|
6
6
|
class Image < CBEntity
|
7
|
+
|
7
8
|
RESOURCE_NAME = 'image'
|
8
9
|
RESOURCE_LIST = 'images'
|
9
10
|
|
@@ -17,5 +18,6 @@ module Crunchbase
|
|
17
18
|
@created_at = Time.at(json['created_at']).utc
|
18
19
|
@updated_at = Time.at(json['updated_at']).utc
|
19
20
|
end
|
21
|
+
|
20
22
|
end
|
21
23
|
end
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
module Crunchbase
|
6
6
|
class Investment < CBEntity
|
7
|
+
|
7
8
|
RESOURCE_LIST = 'investments'
|
8
9
|
|
9
10
|
attr_reader :type_name, :money_invested, :money_invested_currency_code,
|
@@ -31,7 +32,6 @@ module Crunchbase
|
|
31
32
|
@invested_in_name = json['investor'] && json['investor']['name']
|
32
33
|
@invested_in_path = json['investor'] && json['investor']['path']
|
33
34
|
end
|
34
|
-
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
data/lib/crunchbase/ipo.rb
CHANGED
data/lib/crunchbase/new_item.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
module Crunchbase
|
6
6
|
class NewItem < CBEntity
|
7
|
+
|
7
8
|
RESOURCE_LIST = 'news'
|
8
9
|
|
9
10
|
attr_reader :type_name, :url, :author, :posted_on, :type, :title, :created_at,
|
@@ -18,5 +19,6 @@ module Crunchbase
|
|
18
19
|
@created_at = json['created_at']
|
19
20
|
@updated_at = json['updated_at']
|
20
21
|
end
|
22
|
+
|
21
23
|
end
|
22
24
|
end
|
data/lib/crunchbase/office.rb
CHANGED
@@ -14,7 +14,7 @@ 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
|
17
|
+
:role_investor, :founded_on_trust_code, :phone_number
|
18
18
|
|
19
19
|
attr_reader :past_teams, :sub_organizations, :current_teams, :acquisitions, :competitors,
|
20
20
|
:offices, :headquarters, :funding_rounds, :categories, :customers, :investments,
|
@@ -42,18 +42,19 @@ module Crunchbase
|
|
42
42
|
@description = properties['description']
|
43
43
|
@short_description = properties['short_description']
|
44
44
|
@homepage_url = properties['homepage_url']
|
45
|
-
@
|
46
|
-
@
|
47
|
-
@
|
45
|
+
@email_address = properties['email_address']
|
46
|
+
@phone_number = properties['phone_number']
|
47
|
+
@founded_on_day = properties['founded_on_day']
|
48
|
+
@founded_on_month = properties['founded_on_month']
|
49
|
+
@founded_on_year = properties['founded_on_year']
|
48
50
|
@founded_on = properties['founded_on'] && DateTime.parse(properties['founded_on'])
|
49
51
|
@founded_on_trust_code = properties['founded_on_trust_code']
|
50
52
|
@is_closed = properties['is_closed']
|
51
|
-
@closed_on_trust_code = properties['closed_on_trust_code']
|
52
|
-
@email_address = properties['email_address']
|
53
53
|
@closed_on_day = properties['closed_on_day']
|
54
54
|
@closed_on_month = properties['closed_on_month']
|
55
55
|
@closed_on_year = properties['closed_on_year']
|
56
56
|
@closed_on = properties['closed_on'] && DateTime.parse(properties['closed_on'])
|
57
|
+
@closed_on_trust_code = properties['closed_on_trust_code']
|
57
58
|
@role_investor = properties['role_investor']
|
58
59
|
@primary_role = properties['primary_role']
|
59
60
|
@total_funding_usd = properties['total_funding_usd']
|
@@ -257,5 +258,4 @@ module Crunchbase
|
|
257
258
|
end
|
258
259
|
|
259
260
|
end
|
260
|
-
|
261
261
|
end
|
data/lib/crunchbase/past_team.rb
CHANGED
data/lib/crunchbase/person.rb
CHANGED
data/lib/crunchbase/product.rb
CHANGED
data/lib/crunchbase/version.rb
CHANGED
data/lib/crunchbase/website.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
module Crunchbase
|
6
6
|
class Website < CBEntity
|
7
|
+
|
7
8
|
RESOURCE_NAME = 'website'
|
8
9
|
RESOURCE_LIST = 'websites'
|
9
10
|
|
@@ -16,5 +17,6 @@ module Crunchbase
|
|
16
17
|
@created_at = Time.at(json['created_at']).utc
|
17
18
|
@updated_at = Time.at(json['updated_at']).utc
|
18
19
|
end
|
20
|
+
|
19
21
|
end
|
20
22
|
end
|