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.
@@ -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
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class BoardMembersAndAdvisor < CBEntity
7
+
7
8
  RESOURCE_LIST = 'board_members_and_advisors'
8
9
 
9
10
  attr_reader :type_name, :name, :first_name, :last_name, :title, :started_on, :ended_on,
@@ -1,8 +1,10 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/categories?user_key=key
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
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class Competitor < CBEntity
7
+
7
8
  RESOURCE_LIST = 'competitors'
8
9
 
9
10
  attr_reader :type_name, :name, :last_name, :path, :permalink, :title, :started_on, :ended_on,
@@ -22,5 +23,4 @@ module Crunchbase
22
23
  end
23
24
 
24
25
  end
25
-
26
26
  end
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class CurrentTeam < CBEntity
7
+
7
8
  RESOURCE_LIST = 'current_team'
8
9
 
9
10
  attr_reader :type_name, :name, :first_name, :last_name, :path, :permalink, :title,
@@ -24,5 +25,4 @@ module Crunchbase
24
25
  end
25
26
 
26
27
  end
27
-
28
28
  end
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class Customer < CBEntity
7
+
7
8
  RESOURCE_LIST = 'customers'
8
9
 
9
10
  attr_reader :type_name, :name, :permalink, :path, :created_at, :updated_at
@@ -18,5 +19,4 @@ module Crunchbase
18
19
  end
19
20
 
20
21
  end
21
-
22
22
  end
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class Founder < CBEntity
7
+
7
8
  RESOURCE_LIST = 'founders'
8
9
 
9
10
  attr_reader :type_name, :name, :path, :permalink, :created_at, :updated_at
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class FundingRound < CBEntity
7
+
7
8
  RESOURCE_NAME = 'funding-round'
8
9
  RESOURCE_LIST = 'funding_rounds'
9
10
 
@@ -65,5 +66,4 @@ module Crunchbase
65
66
  end
66
67
 
67
68
  end
68
-
69
69
  end
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class Headquarter < CBEntity
7
+
7
8
  RESOURCE_LIST = 'headquarters'
8
9
 
9
10
  attr_reader :type_name, :name, :street_1, :street_2, :city, :city_uuid, :city_path,
@@ -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
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Crunchbase
4
4
  class Ipo < CBEntity
5
+
5
6
  RESOURCE_NAME = 'ipo'
6
7
  RESOURCE_LIST = 'ipo'
7
8
 
@@ -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
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class Office < CBEntity
7
+
7
8
  RESOURCE_LIST = 'offices'
8
9
 
9
10
  attr_reader :type_name, :name, :street_1, :street_2, :city, :city_uuid, :city_path,
@@ -24,5 +25,4 @@ module Crunchbase
24
25
  end
25
26
 
26
27
  end
27
-
28
28
  end
@@ -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
- @closed_on_day = properties['founded_on_day']
46
- @closed_on_month = properties['founded_on_month']
47
- @closed_on_year = properties['founded_on_year']
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
@@ -6,6 +6,7 @@ require 'date'
6
6
 
7
7
  module Crunchbase
8
8
  class PastTeam < CBEntity
9
+
9
10
  RESOURCE_LIST = 'past_team'
10
11
 
11
12
  attr_reader :type_name, :name, :first_name, :last_name, :path, :permalink, :title,
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class Person < CBEntity
7
+
7
8
  RESOURCE_NAME = 'person'
8
9
  RESOURCE_LIST = 'people'
9
10
 
@@ -27,5 +28,4 @@ module Crunchbase
27
28
  end
28
29
 
29
30
  end
30
-
31
31
  end
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class PrimaryImage < CBEntity
7
+
7
8
  RESOURCE_LIST = 'primary_image'
8
9
 
9
10
  attr_reader :type_name, :title, :path, :original_path, :created_at, :updated_at
@@ -6,6 +6,7 @@ require 'date'
6
6
 
7
7
  module Crunchbase
8
8
  class Product < CBEntity
9
+
9
10
  RESOURCE_NAME = 'product'
10
11
  RESOURCE_LIST = 'products'
11
12
 
@@ -74,5 +75,4 @@ module Crunchbase
74
75
  end
75
76
 
76
77
  end
77
-
78
78
  end
@@ -4,6 +4,7 @@ require 'date'
4
4
 
5
5
  module Crunchbase
6
6
  class Relationship < CBEntity
7
+
7
8
  attr_reader :name, :type_name, :path, :permalink, :created_at, :updated_at, :announced_on
8
9
 
9
10
  def initialize(hash)
@@ -4,6 +4,7 @@
4
4
 
5
5
  module Crunchbase
6
6
  class SubOrganization < CBEntity
7
+
7
8
  RESOURCE_LIST = 'sub_organizations'
8
9
 
9
10
  attr_reader :type_name, :name, :path, :permalink, :created_at, :updated_at
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Crunchbase
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
@@ -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
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: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: