crunchbase-wrapper 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/crunchbase-wrapper.gemspec +31 -0
- data/lib/crunchbase/acquisition.rb +31 -0
- data/lib/crunchbase/category.rb +34 -0
- data/lib/crunchbase/fund_raise.rb +31 -0
- data/lib/crunchbase/funding_round.rb +31 -0
- data/lib/crunchbase/i_p_o.rb +31 -0
- data/lib/crunchbase/location.rb +34 -0
- data/lib/crunchbase/organization.rb +54 -0
- data/lib/crunchbase/person.rb +53 -0
- data/lib/crunchbase/product.rb +53 -0
- data/lib/crunchbase/version.rb +3 -0
- data/lib/crunchbase.rb +27 -0
- data/test/fixtures/organizations_1.yml +4723 -0
- data/test/fixtures/twitch.yml +563 -0
- data/test/organization/organization_test.rb +51 -0
- data/test/test_helper.rb +10 -0
- metadata +182 -0
@@ -0,0 +1,563 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.crunchbase.com/v/2/organization/twitch?user_key=DUMMY
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-cache, private, max-age=0, must-revalidate
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Date:
|
26
|
+
- Wed, 12 Nov 2014 20:52:19 GMT
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Server:
|
30
|
+
- openresty
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Vary:
|
34
|
+
- X-Requested-With
|
35
|
+
X-Cache:
|
36
|
+
- HIT - 10
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
X-Request-Id:
|
42
|
+
- 38994495-832f-4647-b3a2-099560c32406
|
43
|
+
X-Run-Esi:
|
44
|
+
- 'true'
|
45
|
+
X-Runtime:
|
46
|
+
- '3.055482'
|
47
|
+
X-Ua-Compatible:
|
48
|
+
- chrome=1
|
49
|
+
X-Xss-Protection:
|
50
|
+
- 1; mode=block
|
51
|
+
Content-Length:
|
52
|
+
- '4102'
|
53
|
+
Connection:
|
54
|
+
- keep-alive
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: |-
|
58
|
+
{
|
59
|
+
"metadata": {
|
60
|
+
"version": 2,
|
61
|
+
"www_path_prefix": "http://www.crunchbase.com/",
|
62
|
+
"api_path_prefix": "http://api.crunchbase.com/v/2/",
|
63
|
+
"image_path_prefix": "http://images.crunchbase.com/"
|
64
|
+
},
|
65
|
+
"data": {
|
66
|
+
"uuid": "3dfd8d9c748079e8a983dcf1d0f8e1a5",
|
67
|
+
"type": "Organization",
|
68
|
+
"properties": {
|
69
|
+
"secondary_role_for_profit": true,
|
70
|
+
"role_company": true,
|
71
|
+
"description": "Founded in June 2011, Twitch is social video for gamers. It is the world\u2019s leading video platform and community for gamers where more than 55 million gather every month to broadcast, watch and talk about video games. Twitch\u2019s video platform is the backbone of both live and on-demand distribution for the entire video game ecosystem. This includes game developers, publishers, media outlets, events, user generated content, and the entire esports scene. In February 2014, Wall Street Journal ranked Twitch as the 4th largest website in terms of peak internet traffic in the U.S. fortifying the brand as an entertainment industry leader and the epicenter of social video for gamers. \n",
|
72
|
+
"short_description": "Twitch is a social video platform for gamers.",
|
73
|
+
"permalink": "twitch",
|
74
|
+
"primary_role": "company",
|
75
|
+
"is_closed": false,
|
76
|
+
"closed_on_trust_code": 0,
|
77
|
+
"name": "Twitch",
|
78
|
+
"founded_on_day": 1,
|
79
|
+
"founded_on_month": 1,
|
80
|
+
"founded_on_year": 2007,
|
81
|
+
"founded_on": "2007-01-01",
|
82
|
+
"founded_on_trust_code": 4,
|
83
|
+
"homepage_url": "http://www.twitch.tv",
|
84
|
+
"closed_on_day": null,
|
85
|
+
"closed_on_month": null,
|
86
|
+
"closed_on_year": null,
|
87
|
+
"closed_on": null,
|
88
|
+
"num_employees_max": 100,
|
89
|
+
"num_employees_min": 51,
|
90
|
+
"also_known_as": "[\"twitchtv\"]",
|
91
|
+
"created_at": 1348087401,
|
92
|
+
"updated_at": 1414708550,
|
93
|
+
"total_funding_usd": 35000000,
|
94
|
+
"number_of_investments": 0,
|
95
|
+
"number_of_employees": 160
|
96
|
+
},
|
97
|
+
"relationships": {
|
98
|
+
"past_team": {
|
99
|
+
"paging": {
|
100
|
+
"total_items": 4,
|
101
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/past_team",
|
102
|
+
"sort_order": "created_at DESC"
|
103
|
+
},
|
104
|
+
"items": [
|
105
|
+
{
|
106
|
+
"first_name": "Nik",
|
107
|
+
"last_name": "Adams",
|
108
|
+
"title": "Instream Video Advertisement. Europe & Russia",
|
109
|
+
"started_on": "2011-01-01",
|
110
|
+
"ended_on": null,
|
111
|
+
"path": "person/nik-adams",
|
112
|
+
"created_at": 1371978029,
|
113
|
+
"updated_at": 1397989173
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"first_name": "Matthew",
|
117
|
+
"last_name": "DiPietro",
|
118
|
+
"title": "VP of Marketing",
|
119
|
+
"started_on": "2010-08-01",
|
120
|
+
"ended_on": null,
|
121
|
+
"path": "person/matthew-dipietro",
|
122
|
+
"created_at": 1223967288,
|
123
|
+
"updated_at": 1409592810
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"first_name": "Matthew",
|
127
|
+
"last_name": "DiPietro",
|
128
|
+
"title": "VP of Marketing",
|
129
|
+
"started_on": "2010-09-01",
|
130
|
+
"ended_on": null,
|
131
|
+
"path": "person/matthew-dipietro",
|
132
|
+
"created_at": 1223967288,
|
133
|
+
"updated_at": 1409592810
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"first_name": "Kyle",
|
137
|
+
"last_name": "Vogt",
|
138
|
+
"title": "Co-Founder",
|
139
|
+
"started_on": null,
|
140
|
+
"ended_on": null,
|
141
|
+
"path": "person/kyle-vogt",
|
142
|
+
"created_at": 1182603773,
|
143
|
+
"updated_at": 1410820745
|
144
|
+
}
|
145
|
+
]
|
146
|
+
},
|
147
|
+
"board_members_and_advisors": {
|
148
|
+
"paging": {
|
149
|
+
"total_items": 2,
|
150
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/board_members_and_advisors",
|
151
|
+
"sort_order": "created_at DESC"
|
152
|
+
},
|
153
|
+
"items": [
|
154
|
+
{
|
155
|
+
"first_name": "Ethan",
|
156
|
+
"last_name": "Kurzweil",
|
157
|
+
"title": "Member, Board of Directors",
|
158
|
+
"started_on": null,
|
159
|
+
"path": "person/ethan-kurzweil",
|
160
|
+
"created_at": 1368157411,
|
161
|
+
"updated_at": 1410945149
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"first_name": "Mackey",
|
165
|
+
"last_name": "Craven",
|
166
|
+
"title": "Board Observer",
|
167
|
+
"started_on": "2012-09-01",
|
168
|
+
"path": "person/mackey-craven",
|
169
|
+
"created_at": 1378818428,
|
170
|
+
"updated_at": 1411129544
|
171
|
+
}
|
172
|
+
]
|
173
|
+
},
|
174
|
+
"current_team": {
|
175
|
+
"paging": {
|
176
|
+
"total_items": 5,
|
177
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/current_team",
|
178
|
+
"sort_order": "custom"
|
179
|
+
},
|
180
|
+
"items": [
|
181
|
+
{
|
182
|
+
"first_name": "Emmett",
|
183
|
+
"last_name": "Shear",
|
184
|
+
"title": "CEO and Founder",
|
185
|
+
"started_on": "2011-06-01",
|
186
|
+
"path": "person/emmett-shear",
|
187
|
+
"created_at": 1182603748,
|
188
|
+
"updated_at": 1414604986
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"first_name": "Justin",
|
192
|
+
"last_name": "Kan",
|
193
|
+
"title": "Founder",
|
194
|
+
"started_on": null,
|
195
|
+
"path": "person/justin-kan",
|
196
|
+
"created_at": 1182603589,
|
197
|
+
"updated_at": 1415305110
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"first_name": "Kevin",
|
201
|
+
"last_name": "Lin",
|
202
|
+
"title": "COO",
|
203
|
+
"started_on": null,
|
204
|
+
"path": "person/kevin-lin",
|
205
|
+
"created_at": 1406299839,
|
206
|
+
"updated_at": 1406300074
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"first_name": "Kym",
|
210
|
+
"last_name": "Nelson",
|
211
|
+
"title": "SVP Sales",
|
212
|
+
"started_on": "2013-01-01",
|
213
|
+
"path": "person/kym-nelson",
|
214
|
+
"created_at": 1283235761,
|
215
|
+
"updated_at": 1409567009
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"first_name": "Jonathan",
|
219
|
+
"last_name": "Simpson-Bint",
|
220
|
+
"title": "CRO",
|
221
|
+
"started_on": "2011-09-01",
|
222
|
+
"path": "person/jonathan-simpson-bint",
|
223
|
+
"created_at": 1241501984,
|
224
|
+
"updated_at": 1397989050
|
225
|
+
}
|
226
|
+
]
|
227
|
+
},
|
228
|
+
"acquired_by": {
|
229
|
+
"paging": {
|
230
|
+
"total_items": 1,
|
231
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/acquired_by",
|
232
|
+
"sort_order": "created_at DESC"
|
233
|
+
},
|
234
|
+
"items": [
|
235
|
+
{
|
236
|
+
"announced_on": "2014-08-25",
|
237
|
+
"type": "Acquisition",
|
238
|
+
"name": "Acquisition",
|
239
|
+
"path": "acquisition/b3a7a87cff3f357a3928b9d51ace822d",
|
240
|
+
"created_at": 1408998597,
|
241
|
+
"updated_at": 1411737939
|
242
|
+
}
|
243
|
+
]
|
244
|
+
},
|
245
|
+
"offices": {
|
246
|
+
"paging": {
|
247
|
+
"total_items": 2,
|
248
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/offices",
|
249
|
+
"sort_order": "created_at DESC"
|
250
|
+
},
|
251
|
+
"items": [
|
252
|
+
{
|
253
|
+
"type": "Address",
|
254
|
+
"name": "Europe Office",
|
255
|
+
"street_1": null,
|
256
|
+
"street_2": null,
|
257
|
+
"postal_code": null,
|
258
|
+
"city": "London",
|
259
|
+
"city_path": "location/london/aad17950576b8c448fd4f44dbeb59220",
|
260
|
+
"region": "London, City of",
|
261
|
+
"region_path": "location/london-city-of/79eb923b9e93e0db2fe075f0c430c2cb",
|
262
|
+
"country": "United Kingdom",
|
263
|
+
"country_path": "location/united-kingdom/a30e342c17426b1c66e9461de680e54b",
|
264
|
+
"latitude": null,
|
265
|
+
"longitude": null,
|
266
|
+
"created_at": 1398261616,
|
267
|
+
"updated_at": 1411679427
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"type": "Address",
|
271
|
+
"name": "Headquarters",
|
272
|
+
"street_1": null,
|
273
|
+
"street_2": null,
|
274
|
+
"postal_code": null,
|
275
|
+
"city": "San Francisco",
|
276
|
+
"city_path": "location/san-francisco/528f5e3c90d111115d1c2e4ff979d58e",
|
277
|
+
"region": "California",
|
278
|
+
"region_path": "location/california/eb879a83c91a121e0bb8829782dbcf04",
|
279
|
+
"country": "United States",
|
280
|
+
"country_path": "location/united-states/f110fca2105599f6996d011c198b3928",
|
281
|
+
"latitude": 37.7749295,
|
282
|
+
"longitude": -122.4194155,
|
283
|
+
"created_at": 1398261577,
|
284
|
+
"updated_at": 1398261577
|
285
|
+
}
|
286
|
+
]
|
287
|
+
},
|
288
|
+
"headquarters": {
|
289
|
+
"paging": {
|
290
|
+
"total_items": 1,
|
291
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/headquarters",
|
292
|
+
"sort_order": "created_at DESC"
|
293
|
+
},
|
294
|
+
"items": [
|
295
|
+
{
|
296
|
+
"type": "Address",
|
297
|
+
"name": "Headquarters",
|
298
|
+
"street_1": null,
|
299
|
+
"street_2": null,
|
300
|
+
"postal_code": null,
|
301
|
+
"city": "San Francisco",
|
302
|
+
"city_path": "location/san-francisco/528f5e3c90d111115d1c2e4ff979d58e",
|
303
|
+
"region": "California",
|
304
|
+
"region_path": "location/california/eb879a83c91a121e0bb8829782dbcf04",
|
305
|
+
"country": "United States",
|
306
|
+
"country_path": "location/united-states/f110fca2105599f6996d011c198b3928",
|
307
|
+
"latitude": 37.7749295,
|
308
|
+
"longitude": -122.4194155,
|
309
|
+
"created_at": 1398261577,
|
310
|
+
"updated_at": 1398261577
|
311
|
+
}
|
312
|
+
]
|
313
|
+
},
|
314
|
+
"funding_rounds": {
|
315
|
+
"paging": {
|
316
|
+
"total_items": 2,
|
317
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/funding_rounds",
|
318
|
+
"sort_order": "created_at DESC"
|
319
|
+
},
|
320
|
+
"items": [
|
321
|
+
{
|
322
|
+
"type": "FundingRound",
|
323
|
+
"name": "Twitch raises 20000000 in venture round",
|
324
|
+
"path": "funding-round/f32296af5e9f78429f3c2919412b9c17",
|
325
|
+
"created_at": 1380546692,
|
326
|
+
"updated_at": 1398010085
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"type": "FundingRound",
|
330
|
+
"name": "Twitch raises 15000000 in venture round",
|
331
|
+
"path": "funding-round/0691041dbf6b33624bc4e1c10b1ec112",
|
332
|
+
"created_at": 1348063456,
|
333
|
+
"updated_at": 1398010173
|
334
|
+
}
|
335
|
+
]
|
336
|
+
},
|
337
|
+
"categories": {
|
338
|
+
"paging": {
|
339
|
+
"total_items": 4,
|
340
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/categories",
|
341
|
+
"sort_order": "created_at DESC"
|
342
|
+
},
|
343
|
+
"items": [
|
344
|
+
{
|
345
|
+
"type": "Category",
|
346
|
+
"name": "Video Streaming",
|
347
|
+
"uuid": "b1b3b2d785ed2cb1fc603e2b6a3b5ddd",
|
348
|
+
"path": "category/video streaming/b1b3b2d785ed2cb1fc603e2b6a3b5ddd",
|
349
|
+
"created_at": 1397980727,
|
350
|
+
"updated_at": 1415700546
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"type": "Category",
|
354
|
+
"name": "Video Games",
|
355
|
+
"uuid": "dabab6afbf1200cab18585cead095097",
|
356
|
+
"path": "category/video games/dabab6afbf1200cab18585cead095097",
|
357
|
+
"created_at": 1397980727,
|
358
|
+
"updated_at": 1415264651
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"type": "Category",
|
362
|
+
"name": "Social Media",
|
363
|
+
"uuid": "5349a2f214d89727c32a19ebea5db78c",
|
364
|
+
"path": "category/social media/5349a2f214d89727c32a19ebea5db78c",
|
365
|
+
"created_at": 1397980726,
|
366
|
+
"updated_at": 1415700768
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"type": "Category",
|
370
|
+
"name": "Video",
|
371
|
+
"uuid": "c6adf8227fa3c0b35188556e08d72128",
|
372
|
+
"path": "category/video/c6adf8227fa3c0b35188556e08d72128",
|
373
|
+
"created_at": 1397980726,
|
374
|
+
"updated_at": 1415699165
|
375
|
+
}
|
376
|
+
]
|
377
|
+
},
|
378
|
+
"founders": {
|
379
|
+
"paging": {
|
380
|
+
"total_items": 2,
|
381
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/founders",
|
382
|
+
"sort_order": "created_at DESC"
|
383
|
+
},
|
384
|
+
"items": [
|
385
|
+
{
|
386
|
+
"type": "Person",
|
387
|
+
"name": "Emmett Shear",
|
388
|
+
"path": "person/emmett-shear",
|
389
|
+
"created_at": 1182603748,
|
390
|
+
"updated_at": 1414604986
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"type": "Person",
|
394
|
+
"name": "Justin Kan",
|
395
|
+
"path": "person/justin-kan",
|
396
|
+
"created_at": 1182603589,
|
397
|
+
"updated_at": 1415305110
|
398
|
+
}
|
399
|
+
]
|
400
|
+
},
|
401
|
+
"primary_image": {
|
402
|
+
"paging": {
|
403
|
+
"total_items": 1,
|
404
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/primary_image",
|
405
|
+
"sort_order": "created_at DESC"
|
406
|
+
},
|
407
|
+
"items": [
|
408
|
+
{
|
409
|
+
"type": "ImageAsset",
|
410
|
+
"title": null,
|
411
|
+
"path": "image/upload/v1409258691/hneg6djphcfm6klf9kqc.png",
|
412
|
+
"created_at": 1398018503,
|
413
|
+
"updated_at": 1409258695
|
414
|
+
}
|
415
|
+
]
|
416
|
+
},
|
417
|
+
"images": {
|
418
|
+
"paging": {
|
419
|
+
"total_items": 1,
|
420
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/images",
|
421
|
+
"sort_order": "created_at DESC"
|
422
|
+
},
|
423
|
+
"items": [
|
424
|
+
{
|
425
|
+
"type": "ImageAsset",
|
426
|
+
"title": null,
|
427
|
+
"path": "image/upload/v1397184156/213b3be4cdd214be97460215f94bc117.jpg",
|
428
|
+
"created_at": 1398018503,
|
429
|
+
"updated_at": 1398018503
|
430
|
+
}
|
431
|
+
]
|
432
|
+
},
|
433
|
+
"websites": {
|
434
|
+
"paging": {
|
435
|
+
"total_items": 5,
|
436
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/websites",
|
437
|
+
"sort_order": "created_at DESC"
|
438
|
+
},
|
439
|
+
"items": [
|
440
|
+
{
|
441
|
+
"url": "http://www.linkedin.com/company/2320329",
|
442
|
+
"type": "WebPresence",
|
443
|
+
"title": "linkedin",
|
444
|
+
"created_at": 1403502317,
|
445
|
+
"updated_at": 1409462169
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"url": "http://www.facebook.com/twitch",
|
449
|
+
"type": "WebPresence",
|
450
|
+
"title": "facebook",
|
451
|
+
"created_at": 1397877760,
|
452
|
+
"updated_at": 2014
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"url": "http://twitter.com/twitchtv",
|
456
|
+
"type": "WebPresence",
|
457
|
+
"title": "twitter",
|
458
|
+
"created_at": 1348062201,
|
459
|
+
"updated_at": 1409427357
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"url": "http://blog.twitch.tv/",
|
463
|
+
"type": "WebPresence",
|
464
|
+
"title": "blog",
|
465
|
+
"created_at": 1348062201,
|
466
|
+
"updated_at": 1397988217
|
467
|
+
},
|
468
|
+
{
|
469
|
+
"url": "http://www.twitch.tv",
|
470
|
+
"type": "WebPresence",
|
471
|
+
"title": "homepage",
|
472
|
+
"created_at": 1348062201,
|
473
|
+
"updated_at": 1397988217
|
474
|
+
}
|
475
|
+
]
|
476
|
+
},
|
477
|
+
"news": {
|
478
|
+
"paging": {
|
479
|
+
"total_items": 14,
|
480
|
+
"first_page_url": "http://api.crunchbase.com/v/2/organization/twitch/news",
|
481
|
+
"sort_order": "created_at DESC"
|
482
|
+
},
|
483
|
+
"items": [
|
484
|
+
{
|
485
|
+
"url": "http://techcrunch.com/2014/08/25/for-just-one-play/",
|
486
|
+
"author": null,
|
487
|
+
"posted_on": "2014-08-25",
|
488
|
+
"type": "PressReference",
|
489
|
+
"title": "Nerds Love Twitch Because There, They Can Be Heroes | TechCrunch",
|
490
|
+
"created_at": 1409032094,
|
491
|
+
"updated_at": 1409032094
|
492
|
+
},
|
493
|
+
{
|
494
|
+
"url": "http://techcrunch.com/2014/08/07/twitch-on-defense-after-abrupt-changes-to-its-content-policies-anger-users/",
|
495
|
+
"author": null,
|
496
|
+
"posted_on": "2014-08-07",
|
497
|
+
"type": "PressReference",
|
498
|
+
"title": "Twitch On Defense After Abrupt Changes To Its Content Policies Anger Users | TechCrunch",
|
499
|
+
"created_at": 1407486474,
|
500
|
+
"updated_at": 1407486474
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"url": "http://www.techinasia.com/youtube-buy-twitch-1b-chinas-hardcore-gamers/",
|
504
|
+
"author": null,
|
505
|
+
"posted_on": null,
|
506
|
+
"type": "PressReference",
|
507
|
+
"title": "Youtube might buy Twitch for $1B. What are China\u2019s hardcore gamers using instead?",
|
508
|
+
"created_at": 1406603356,
|
509
|
+
"updated_at": 1406603356
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"url": "http://techcrunch.com/2014/07/25/twitch-ceo-emmett-shear-and-coo-kevin-lin-to-speak-at-disrupt-sf/",
|
513
|
+
"author": null,
|
514
|
+
"posted_on": "2014-07-25",
|
515
|
+
"type": "PressReference",
|
516
|
+
"title": "Twitch CEO Emmett Shear And COO Kevin Lin To Speak At Disrupt SF | TechCrunch",
|
517
|
+
"created_at": 1406354593,
|
518
|
+
"updated_at": 1406354593
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"url": "http://techcrunch.com/2014/05/27/tc-cribs-tours-twitch-tv-gaming-office-headquarters/",
|
522
|
+
"author": null,
|
523
|
+
"posted_on": "2014-05-27",
|
524
|
+
"type": "PressReference",
|
525
|
+
"title": "TC Cribs Tours Twitch, Where Playing Games Is Part Of The Job | TechCrunch",
|
526
|
+
"created_at": 1401303253,
|
527
|
+
"updated_at": 1401303253
|
528
|
+
},
|
529
|
+
{
|
530
|
+
"url": "http://techcrunch.com/2013/06/10/twitch-xbox-one/",
|
531
|
+
"author": "Ryan Lawler",
|
532
|
+
"posted_on": "2013-06-10",
|
533
|
+
"type": "PressReference",
|
534
|
+
"title": "Twitch Integrates With Xbox One For Live Broadcasting And Viewing Of Video Game Streams",
|
535
|
+
"created_at": 1370887227,
|
536
|
+
"updated_at": 2013
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"url": "http://techcrunch.com/2013/06/10/thanks-to-twitch-watch-microsofts-2013-e3-press-conference-right-here/",
|
540
|
+
"author": "Matt Burns",
|
541
|
+
"posted_on": "2013-06-10",
|
542
|
+
"type": "PressReference",
|
543
|
+
"title": "Thanks To Twitch, Watch Microsoft's 2013 E3 Press Conference Right Here",
|
544
|
+
"created_at": 1370877610,
|
545
|
+
"updated_at": 2013
|
546
|
+
},
|
547
|
+
{
|
548
|
+
"url": "http://techcrunch.com/2013/06/10/twitch-updated-sdk/",
|
549
|
+
"author": "Ryan Lawler",
|
550
|
+
"posted_on": "2013-06-10",
|
551
|
+
"type": "PressReference",
|
552
|
+
"title": "Twitch Updates SDK To Boost Engagement, Get Its Streams Embedded In More Video Games",
|
553
|
+
"created_at": 1370848811,
|
554
|
+
"updated_at": 2013
|
555
|
+
}
|
556
|
+
]
|
557
|
+
}
|
558
|
+
}
|
559
|
+
}
|
560
|
+
}
|
561
|
+
http_version:
|
562
|
+
recorded_at: Wed, 12 Nov 2014 20:51:51 GMT
|
563
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require './test/test_helper'
|
2
|
+
|
3
|
+
class CrunchbaseCollectionTest < Minitest::Test
|
4
|
+
|
5
|
+
def setup
|
6
|
+
Crunchbase.config.user_key = 'DUMMY'
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_exists
|
10
|
+
assert Crunchbase::Organization
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_it_gives_back_a_single_organization
|
14
|
+
VCR.use_cassette('twitch') do
|
15
|
+
o = Crunchbase::Organization.find('twitch')
|
16
|
+
assert_equal Crunchbase::Organization, o.class
|
17
|
+
|
18
|
+
assert_equal "3dfd8d9c748079e8a983dcf1d0f8e1a5", o.uuid
|
19
|
+
assert_equal "Organization", o.type
|
20
|
+
assert o.properties
|
21
|
+
assert_equal true, o.properties.secondary_role_for_profit
|
22
|
+
assert_equal "twitch", o.properties.permalink
|
23
|
+
assert o.relationships
|
24
|
+
assert o.relationships.categories
|
25
|
+
assert_equal "b1b3b2d785ed2cb1fc603e2b6a3b5ddd", o.relationships.categories.items.first.uuid
|
26
|
+
assert_equal 4, o.relationships.categories.paging.total_items
|
27
|
+
assert_equal 4, o.relationships.categories.items.size
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_it_gives_back_first_page_of_organizations
|
33
|
+
VCR.use_cassette('organizations_1') do
|
34
|
+
orgs_1 = Crunchbase::Organization.all
|
35
|
+
|
36
|
+
# Make sure we got all the organizations
|
37
|
+
assert_equal 1000, orgs_1.length
|
38
|
+
|
39
|
+
# Make sure that the JSON was parsed
|
40
|
+
assert orgs_1.kind_of?(Array)
|
41
|
+
assert orgs_1.first.kind_of?(Crunchbase::Organization)
|
42
|
+
|
43
|
+
assert_equal "organization/airzolo", orgs_1.first.path
|
44
|
+
|
45
|
+
#load details
|
46
|
+
details = orgs_1.first.load_details
|
47
|
+
assert_equal orgs_1.first.name, details.properties.name
|
48
|
+
assert_equal orgs_1.first.path.sub("organization/", ''), details.properties.permalink
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|