crunchbase_v2 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crunchbase/acquisition.rb +2 -1
- data/lib/crunchbase/api.rb +2 -1
- data/lib/crunchbase/board_members_and_advisor.rb +1 -1
- data/lib/crunchbase/image.rb +1 -1
- data/lib/crunchbase/organization.rb +12 -5
- data/lib/crunchbase/primary_image.rb +1 -1
- data/lib/crunchbase/version.rb +3 -1
- data/lib/crunchbase.rb +2 -0
- metadata +2 -2
data/lib/crunchbase/api.rb
CHANGED
data/lib/crunchbase/image.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
|
2
3
|
require 'date'
|
3
4
|
|
4
5
|
module Crunchbase
|
@@ -8,12 +9,12 @@ module Crunchbase
|
|
8
9
|
RESOURCE_LIST = 'organizations'
|
9
10
|
|
10
11
|
attr_reader :type_name, :name, :permalink, :description, :short_description,
|
11
|
-
:homepage_url, :founded_on, :is_closed, :closed_on,
|
12
|
-
:primary_role, :total_funding_usd, :number_of_investments,
|
13
|
-
:number_of_employees, :stock_symbol, :stock_exchange,
|
12
|
+
:homepage_url, :founded_on, :is_closed, :closed_on, :email_address,
|
13
|
+
:primary_role, :total_funding_usd, :number_of_investments, :role_company,
|
14
|
+
:number_of_employees, :stock_symbol, :stock_exchange, :uuid, :closed_on_trust_code,
|
14
15
|
:created_at, :updated_at, :logo_url, :closed_on_day, :closed_on_month,
|
15
|
-
:closed_on_year, :founded_on_day, :founded_on_month, :founded_on_year
|
16
|
-
|
16
|
+
:closed_on_year, :founded_on_day, :founded_on_month, :founded_on_year,
|
17
|
+
:role_investor, :founded_on_trust_code
|
17
18
|
|
18
19
|
attr_reader :past_teams, :sub_organizations, :current_teams, :acquisitions, :competitors,
|
19
20
|
:offices, :headquarters, :funding_rounds, :categories, :customers, :investments,
|
@@ -30,10 +31,12 @@ module Crunchbase
|
|
30
31
|
|
31
32
|
|
32
33
|
def initialize(json)
|
34
|
+
@uuid = json['uuid']
|
33
35
|
@type_name = json['type']
|
34
36
|
properties = json['properties']
|
35
37
|
relationships = json['relationships']
|
36
38
|
|
39
|
+
@role_company = properties['role_company']
|
37
40
|
@name = properties['name']
|
38
41
|
@permalink = properties['permalink']
|
39
42
|
@description = properties['description']
|
@@ -43,11 +46,15 @@ module Crunchbase
|
|
43
46
|
@closed_on_month = properties['founded_on_month']
|
44
47
|
@closed_on_year = properties['founded_on_year']
|
45
48
|
@founded_on = properties['founded_on'] && DateTime.parse(properties['founded_on'])
|
49
|
+
@founded_on_trust_code = properties['founded_on_trust_code']
|
46
50
|
@is_closed = properties['is_closed']
|
51
|
+
@closed_on_trust_code = properties['closed_on_trust_code']
|
52
|
+
@email_address = properties['email_address']
|
47
53
|
@closed_on_day = properties['closed_on_day']
|
48
54
|
@closed_on_month = properties['closed_on_month']
|
49
55
|
@closed_on_year = properties['closed_on_year']
|
50
56
|
@closed_on = properties['closed_on'] && DateTime.parse(properties['closed_on'])
|
57
|
+
@role_investor = properties['role_investor']
|
51
58
|
@primary_role = properties['primary_role']
|
52
59
|
@total_funding_usd = properties['total_funding_usd']
|
53
60
|
@number_of_investments = properties['number_of_investments']
|
data/lib/crunchbase/version.rb
CHANGED
data/lib/crunchbase.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: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|