crunchbase_v2 0.0.5 → 0.0.6

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.
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/acquisitions?user_key=key
3
+ # http://api.crunchbase.com/v/2/organization/facebook/acquisitions
4
+
4
5
  module Crunchbase
5
6
  class Acquisition < CBEntity
6
7
  RESOURCE_NAME = 'acquisition'
@@ -1,4 +1,5 @@
1
- # -*- coding: utf-8 -*-
1
+ # encoding: utf-8
2
+
2
3
  require 'net/http'
3
4
 
4
5
  begin
@@ -1,4 +1,4 @@
1
- # encode: utf-8
1
+ # encoding: utf-8
2
2
 
3
3
  # http://api.crunchbase.com/v/2/organization/facebook/board_members_and_advisors
4
4
 
@@ -1,4 +1,4 @@
1
- # encode: utf-8
1
+ # encoding: utf-8
2
2
 
3
3
  # http://api.crunchbase.com/v/2/organization/facebook/images
4
4
 
@@ -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']
@@ -1,4 +1,4 @@
1
- # encode: utf-8
1
+ # encoding: utf-8
2
2
 
3
3
  # http://api.crunchbase.com/v/2/organization/facebook/primary_image
4
4
 
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  module Crunchbase
2
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
3
5
  end
data/lib/crunchbase.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require "crunchbase/api"
2
4
  require "crunchbase/crunch_exception"
3
5
  require "crunchbase/cb_entity"
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.5
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-28 00:00:00.000000000 Z
12
+ date: 2014-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler