crunchbase_v2 0.0.3 → 0.0.4

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.
@@ -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']
@@ -1,3 +1,3 @@
1
1
  module Crunchbase
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: