crunchbase_v2 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crunchbase/cb_entity.rb +0 -1
- data/lib/crunchbase/organization.rb +9 -1
- data/lib/crunchbase/version.rb +1 -1
- metadata +1 -1
data/lib/crunchbase/cb_entity.rb
CHANGED
@@ -12,7 +12,6 @@ module Crunchbase
|
|
12
12
|
|
13
13
|
# Finds an entity by its name. Uses two HTTP requests; one to find the
|
14
14
|
# permalink, and another to request the actual entity.
|
15
|
-
# http://api.crunchbase.com/v/2/organizations?name=ekohe&organization_types=company&user_key=key&page=1"
|
16
15
|
def self.search(options)
|
17
16
|
return [] unless self == Crunchbase::Organization
|
18
17
|
|
@@ -11,7 +11,9 @@ module Crunchbase
|
|
11
11
|
:homepage_url, :founded_on, :is_closed, :closed_on,
|
12
12
|
:primary_role, :total_funding_usd, :number_of_investments,
|
13
13
|
:number_of_employees, :stock_symbol, :stock_exchange,
|
14
|
-
:created_at, :updated_at, :logo_url
|
14
|
+
: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
|
+
|
15
17
|
|
16
18
|
attr_reader :past_teams, :sub_organizations, :current_teams, :acquisitions, :competitors,
|
17
19
|
:offices, :headquarters, :funding_rounds, :categories, :customers, :investments,
|
@@ -37,8 +39,14 @@ module Crunchbase
|
|
37
39
|
@description = properties['description']
|
38
40
|
@short_description = properties['short_description']
|
39
41
|
@homepage_url = properties['homepage_url']
|
42
|
+
@closed_on_day = properties['founded_on_day']
|
43
|
+
@closed_on_month = properties['founded_on_month']
|
44
|
+
@closed_on_year = properties['founded_on_year']
|
40
45
|
@founded_on = properties['founded_on'] && DateTime.parse(properties['founded_on'])
|
41
46
|
@is_closed = properties['is_closed']
|
47
|
+
@closed_on_day = properties['closed_on_day']
|
48
|
+
@closed_on_month = properties['closed_on_month']
|
49
|
+
@closed_on_year = properties['closed_on_year']
|
42
50
|
@closed_on = properties['closed_on'] && DateTime.parse(properties['closed_on'])
|
43
51
|
@primary_role = properties['primary_role']
|
44
52
|
@total_funding_usd = properties['total_funding_usd']
|
data/lib/crunchbase/version.rb
CHANGED