tmdb_party 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ module TMDBParty
2
+ class Studio
3
+ include Attributes
4
+ attributes :name, :url
5
+
6
+ def self.parse(data)
7
+ return unless data
8
+ if data.is_a?(Array)
9
+ data.map { |row| Studio.new(row) }
10
+ else
11
+ [Studio.new(data)]
12
+ end
13
+ end
14
+
15
+ def initialize(attributes)
16
+ self.attributes = attributes
17
+ end
18
+ end
19
+ end
File without changes
@@ -0,0 +1,630 @@
1
+ [
2
+ {
3
+ "popularity": 3,
4
+ "name": "Megan Fox",
5
+ "known_as":
6
+ [
7
+ ],
8
+ "id": 19537,
9
+ "biography": "\u003Cb\u003ECareer\u003C/b\u003E\\n \\n ...",
10
+ "known_movies": 6,
11
+ "birthday": "1986-05-16",
12
+ "birthplace": "Oakridge, TN",
13
+ "url": "http://www.themoviedb.org/person/19537",
14
+ "filmography":
15
+ [
16
+ {
17
+ "name": "Transformers",
18
+ "id": 1858,
19
+ "job": "Actor",
20
+ "department": "Actors",
21
+ "character": "Mikaela Banes",
22
+ "url": "http://www.themoviedb.org/movie/1858"
23
+ },
24
+ {
25
+ "name": "Transformers: Revenge of the Fallen",
26
+ "id": 8373,
27
+ "job": "Actor",
28
+ "department": "Actors",
29
+ "character": "Mikaela Banes",
30
+ "url": "http://www.themoviedb.org/movie/8373"
31
+ },
32
+ {
33
+ "name": "Confessions of a Teenage Drama Queen",
34
+ "id": 11132,
35
+ "job": "Actor",
36
+ "department": "Actors",
37
+ "character": "Carla",
38
+ "url": "http://www.themoviedb.org/movie/11132"
39
+ },
40
+ {
41
+ "name": "How to Lose Friends \u0026 Alienate People",
42
+ "id": 13092,
43
+ "job": "Actor",
44
+ "department": "Actors",
45
+ "character": "Sophie Maes",
46
+ "url": "http://www.themoviedb.org/movie/13092"
47
+ },
48
+ {
49
+ "name": "Jennifer's Body",
50
+ "id": 19994,
51
+ "job": "Actor",
52
+ "department": "Actors",
53
+ "character": "Jennifer Check",
54
+ "url": "http://www.themoviedb.org/movie/19994"
55
+ },
56
+ {
57
+ "name": "Jonah Hex",
58
+ "id": 20533,
59
+ "job": "Actor",
60
+ "department": "Actors",
61
+ "character": "Leila",
62
+ "url": "http://www.themoviedb.org/movie/20533"
63
+ }
64
+ ],
65
+ "profile":
66
+ [
67
+ {
68
+ "image":
69
+ {
70
+ "type": "profile",
71
+ "size": "original",
72
+ "height": 1510,
73
+ "width": 1000,
74
+ "url": "http://i3.themoviedb.org/profiles/845/4be38d2b017a3c35b7000845/megan-fox-original.jpg",
75
+ "id": "4be38d2b017a3c35b7000845"
76
+ }
77
+ },
78
+ {
79
+ "image":
80
+ {
81
+ "type": "profile",
82
+ "size": "profile",
83
+ "height": 279,
84
+ "width": 185,
85
+ "url": "http://i1.themoviedb.org/profiles/845/4be38d2b017a3c35b7000845/megan-fox-profile.jpg",
86
+ "id": "4be38d2b017a3c35b7000845"
87
+ }
88
+ },
89
+ {
90
+ "image":
91
+ {
92
+ "type": "profile",
93
+ "size": "thumb",
94
+ "height": 68,
95
+ "width": 45,
96
+ "url": "http://i3.themoviedb.org/profiles/845/4be38d2b017a3c35b7000845/megan-fox-thumb.jpg",
97
+ "id": "4be38d2b017a3c35b7000845"
98
+ }
99
+ },
100
+ {
101
+ "image":
102
+ {
103
+ "type": "profile",
104
+ "size": "original",
105
+ "height": 1505,
106
+ "width": 1000,
107
+ "url": "http://i3.themoviedb.org/profiles/8c6/4be38ce0017a3c35bb0008c6/megan-fox-original.jpg",
108
+ "id": "4be38ce0017a3c35bb0008c6"
109
+ }
110
+ },
111
+ {
112
+ "image":
113
+ {
114
+ "type": "profile",
115
+ "size": "profile",
116
+ "height": 278,
117
+ "width": 185,
118
+ "url": "http://i2.themoviedb.org/profiles/8c6/4be38ce0017a3c35bb0008c6/megan-fox-profile.jpg",
119
+ "id": "4be38ce0017a3c35bb0008c6"
120
+ }
121
+ },
122
+ {
123
+ "image":
124
+ {
125
+ "type": "profile",
126
+ "size": "thumb",
127
+ "height": 68,
128
+ "width": 45,
129
+ "url": "http://i3.themoviedb.org/profiles/8c6/4be38ce0017a3c35bb0008c6/megan-fox-thumb.jpg",
130
+ "id": "4be38ce0017a3c35bb0008c6"
131
+ }
132
+ },
133
+ {
134
+ "image":
135
+ {
136
+ "type": "profile",
137
+ "size": "original",
138
+ "height": 1475,
139
+ "width": 1000,
140
+ "url": "http://i2.themoviedb.org/profiles/8a2/4be38ca1017a3c35b90008a2/megan-fox-original.jpg",
141
+ "id": "4be38ca1017a3c35b90008a2"
142
+ }
143
+ },
144
+ {
145
+ "image":
146
+ {
147
+ "type": "profile",
148
+ "size": "profile",
149
+ "height": 273,
150
+ "width": 185,
151
+ "url": "http://i2.themoviedb.org/profiles/8a2/4be38ca1017a3c35b90008a2/megan-fox-profile.jpg",
152
+ "id": "4be38ca1017a3c35b90008a2"
153
+ }
154
+ },
155
+ {
156
+ "image":
157
+ {
158
+ "type": "profile",
159
+ "size": "thumb",
160
+ "height": 66,
161
+ "width": 45,
162
+ "url": "http://i2.themoviedb.org/profiles/8a2/4be38ca1017a3c35b90008a2/megan-fox-thumb.jpg",
163
+ "id": "4be38ca1017a3c35b90008a2"
164
+ }
165
+ },
166
+ {
167
+ "image":
168
+ {
169
+ "type": "profile",
170
+ "size": "original",
171
+ "height": 1505,
172
+ "width": 1000,
173
+ "url": "http://i2.themoviedb.org/profiles/871/4be38caf017a3c35b5000871/megan-fox-original.jpg",
174
+ "id": "4be38caf017a3c35b5000871"
175
+ }
176
+ },
177
+ {
178
+ "image":
179
+ {
180
+ "type": "profile",
181
+ "size": "profile",
182
+ "height": 278,
183
+ "width": 185,
184
+ "url": "http://i2.themoviedb.org/profiles/871/4be38caf017a3c35b5000871/megan-fox-profile.jpg",
185
+ "id": "4be38caf017a3c35b5000871"
186
+ }
187
+ },
188
+ {
189
+ "image":
190
+ {
191
+ "type": "profile",
192
+ "size": "thumb",
193
+ "height": 68,
194
+ "width": 45,
195
+ "url": "http://i3.themoviedb.org/profiles/871/4be38caf017a3c35b5000871/megan-fox-thumb.jpg",
196
+ "id": "4be38caf017a3c35b5000871"
197
+ }
198
+ },
199
+ {
200
+ "image":
201
+ {
202
+ "type": "profile",
203
+ "size": "original",
204
+ "height": 1505,
205
+ "width": 1000,
206
+ "url": "http://i2.themoviedb.org/profiles/8a6/4be38cbc017a3c35b90008a6/megan-fox-original.jpg",
207
+ "id": "4be38cbc017a3c35b90008a6"
208
+ }
209
+ },
210
+ {
211
+ "image":
212
+ {
213
+ "type": "profile",
214
+ "size": "profile",
215
+ "height": 278,
216
+ "width": 185,
217
+ "url": "http://i1.themoviedb.org/profiles/8a6/4be38cbc017a3c35b90008a6/megan-fox-profile.jpg",
218
+ "id": "4be38cbc017a3c35b90008a6"
219
+ }
220
+ },
221
+ {
222
+ "image":
223
+ {
224
+ "type": "profile",
225
+ "size": "thumb",
226
+ "height": 68,
227
+ "width": 45,
228
+ "url": "http://i3.themoviedb.org/profiles/8a6/4be38cbc017a3c35b90008a6/megan-fox-thumb.jpg",
229
+ "id": "4be38cbc017a3c35b90008a6"
230
+ }
231
+ },
232
+ {
233
+ "image":
234
+ {
235
+ "type": "profile",
236
+ "size": "original",
237
+ "height": 1298,
238
+ "width": 1000,
239
+ "url": "http://i2.themoviedb.org/profiles/988/4be38cf3017a3c35bd000988/megan-fox-original.jpg",
240
+ "id": "4be38cf3017a3c35bd000988"
241
+ }
242
+ },
243
+ {
244
+ "image":
245
+ {
246
+ "type": "profile",
247
+ "size": "profile",
248
+ "height": 240,
249
+ "width": 185,
250
+ "url": "http://i1.themoviedb.org/profiles/988/4be38cf3017a3c35bd000988/megan-fox-profile.jpg",
251
+ "id": "4be38cf3017a3c35bd000988"
252
+ }
253
+ },
254
+ {
255
+ "image":
256
+ {
257
+ "type": "profile",
258
+ "size": "thumb",
259
+ "height": 58,
260
+ "width": 45,
261
+ "url": "http://i3.themoviedb.org/profiles/988/4be38cf3017a3c35bd000988/megan-fox-thumb.jpg",
262
+ "id": "4be38cf3017a3c35bd000988"
263
+ }
264
+ },
265
+ {
266
+ "image":
267
+ {
268
+ "type": "profile",
269
+ "size": "original",
270
+ "height": 1505,
271
+ "width": 1000,
272
+ "url": "http://i3.themoviedb.org/profiles/8aa/4be38cd5017a3c35b90008aa/megan-fox-original.jpg",
273
+ "id": "4be38cd5017a3c35b90008aa"
274
+ }
275
+ },
276
+ {
277
+ "image":
278
+ {
279
+ "type": "profile",
280
+ "size": "profile",
281
+ "height": 278,
282
+ "width": 185,
283
+ "url": "http://i1.themoviedb.org/profiles/8aa/4be38cd5017a3c35b90008aa/megan-fox-profile.jpg",
284
+ "id": "4be38cd5017a3c35b90008aa"
285
+ }
286
+ },
287
+ {
288
+ "image":
289
+ {
290
+ "type": "profile",
291
+ "size": "thumb",
292
+ "height": 68,
293
+ "width": 45,
294
+ "url": "http://i1.themoviedb.org/profiles/8aa/4be38cd5017a3c35b90008aa/megan-fox-thumb.jpg",
295
+ "id": "4be38cd5017a3c35b90008aa"
296
+ }
297
+ },
298
+ {
299
+ "image":
300
+ {
301
+ "type": "profile",
302
+ "size": "original",
303
+ "height": 1300,
304
+ "width": 1000,
305
+ "url": "http://i1.themoviedb.org/profiles/8ae/4be38d1b017a3c35b90008ae/megan-fox-original.jpg",
306
+ "id": "4be38d1b017a3c35b90008ae"
307
+ }
308
+ },
309
+ {
310
+ "image":
311
+ {
312
+ "type": "profile",
313
+ "size": "profile",
314
+ "height": 241,
315
+ "width": 185,
316
+ "url": "http://i3.themoviedb.org/profiles/8ae/4be38d1b017a3c35b90008ae/megan-fox-profile.jpg",
317
+ "id": "4be38d1b017a3c35b90008ae"
318
+ }
319
+ },
320
+ {
321
+ "image":
322
+ {
323
+ "type": "profile",
324
+ "size": "thumb",
325
+ "height": 59,
326
+ "width": 45,
327
+ "url": "http://i1.themoviedb.org/profiles/8ae/4be38d1b017a3c35b90008ae/megan-fox-thumb.jpg",
328
+ "id": "4be38d1b017a3c35b90008ae"
329
+ }
330
+ },
331
+ {
332
+ "image":
333
+ {
334
+ "type": "profile",
335
+ "size": "original",
336
+ "height": 1196,
337
+ "width": 776,
338
+ "url": "http://i3.themoviedb.org/profiles/0c3/4bd52419017a3c2e790000c3/megan-fox-original.jpg",
339
+ "id": "4bd52419017a3c2e790000c3"
340
+ }
341
+ },
342
+ {
343
+ "image":
344
+ {
345
+ "type": "profile",
346
+ "size": "profile",
347
+ "height": 285,
348
+ "width": 185,
349
+ "url": "http://i1.themoviedb.org/profiles/0c3/4bd52419017a3c2e790000c3/megan-fox-profile.jpg",
350
+ "id": "4bd52419017a3c2e790000c3"
351
+ }
352
+ },
353
+ {
354
+ "image":
355
+ {
356
+ "type": "profile",
357
+ "size": "thumb",
358
+ "height": 69,
359
+ "width": 45,
360
+ "url": "http://i3.themoviedb.org/profiles/0c3/4bd52419017a3c2e790000c3/megan-fox-thumb.jpg",
361
+ "id": "4bd52419017a3c2e790000c3"
362
+ }
363
+ },
364
+ {
365
+ "image":
366
+ {
367
+ "type": "profile",
368
+ "size": "original",
369
+ "height": 1296,
370
+ "width": 910,
371
+ "url": "http://i3.themoviedb.org/profiles/077/4bd3caa6017a3c533d000077/megan-fox-original.jpg",
372
+ "id": "4bd3caa6017a3c533d000077"
373
+ }
374
+ },
375
+ {
376
+ "image":
377
+ {
378
+ "type": "profile",
379
+ "size": "profile",
380
+ "height": 263,
381
+ "width": 185,
382
+ "url": "http://i3.themoviedb.org/profiles/077/4bd3caa6017a3c533d000077/megan-fox-profile.jpg",
383
+ "id": "4bd3caa6017a3c533d000077"
384
+ }
385
+ },
386
+ {
387
+ "image":
388
+ {
389
+ "type": "profile",
390
+ "size": "thumb",
391
+ "height": 64,
392
+ "width": 45,
393
+ "url": "http://i3.themoviedb.org/profiles/077/4bd3caa6017a3c533d000077/megan-fox-thumb.jpg",
394
+ "id": "4bd3caa6017a3c533d000077"
395
+ }
396
+ },
397
+ {
398
+ "image":
399
+ {
400
+ "type": "profile",
401
+ "size": "original",
402
+ "height": 1000,
403
+ "width": 751,
404
+ "url": "http://i3.themoviedb.org/profiles/02d/4bc9fd6e017a3c0e8f00002d/megan-fox-original.jpg",
405
+ "id": "4bc9fd6e017a3c0e8f00002d"
406
+ }
407
+ },
408
+ {
409
+ "image":
410
+ {
411
+ "type": "profile",
412
+ "size": "profile",
413
+ "height": 246,
414
+ "width": 185,
415
+ "url": "http://i3.themoviedb.org/profiles/02d/4bc9fd6e017a3c0e8f00002d/megan-fox-profile.jpg",
416
+ "id": "4bc9fd6e017a3c0e8f00002d"
417
+ }
418
+ },
419
+ {
420
+ "image":
421
+ {
422
+ "type": "profile",
423
+ "size": "thumb",
424
+ "height": 60,
425
+ "width": 45,
426
+ "url": "http://i2.themoviedb.org/profiles/02d/4bc9fd6e017a3c0e8f00002d/megan-fox-thumb.jpg",
427
+ "id": "4bc9fd6e017a3c0e8f00002d"
428
+ }
429
+ },
430
+ {
431
+ "image":
432
+ {
433
+ "type": "profile",
434
+ "size": "original",
435
+ "height": 1303,
436
+ "width": 1000,
437
+ "url": "http://i3.themoviedb.org/profiles/840/4be38e56017a3c35c1000840/megan-fox-original.jpg",
438
+ "id": "4be38e56017a3c35c1000840"
439
+ }
440
+ },
441
+ {
442
+ "image":
443
+ {
444
+ "type": "profile",
445
+ "size": "profile",
446
+ "height": 241,
447
+ "width": 185,
448
+ "url": "http://i3.themoviedb.org/profiles/840/4be38e56017a3c35c1000840/megan-fox-profile.jpg",
449
+ "id": "4be38e56017a3c35c1000840"
450
+ }
451
+ },
452
+ {
453
+ "image":
454
+ {
455
+ "type": "profile",
456
+ "size": "thumb",
457
+ "height": 59,
458
+ "width": 45,
459
+ "url": "http://i3.themoviedb.org/profiles/840/4be38e56017a3c35c1000840/megan-fox-thumb.jpg",
460
+ "id": "4be38e56017a3c35c1000840"
461
+ }
462
+ },
463
+ {
464
+ "image":
465
+ {
466
+ "type": "profile",
467
+ "size": "original",
468
+ "height": 1307,
469
+ "width": 1000,
470
+ "url": "http://i2.themoviedb.org/profiles/98c/4be38e6b017a3c35bd00098c/megan-fox-original.jpg",
471
+ "id": "4be38e6b017a3c35bd00098c"
472
+ }
473
+ },
474
+ {
475
+ "image":
476
+ {
477
+ "type": "profile",
478
+ "size": "profile",
479
+ "height": 242,
480
+ "width": 185,
481
+ "url": "http://i2.themoviedb.org/profiles/98c/4be38e6b017a3c35bd00098c/megan-fox-profile.jpg",
482
+ "id": "4be38e6b017a3c35bd00098c"
483
+ }
484
+ },
485
+ {
486
+ "image":
487
+ {
488
+ "type": "profile",
489
+ "size": "thumb",
490
+ "height": 59,
491
+ "width": 45,
492
+ "url": "http://i2.themoviedb.org/profiles/98c/4be38e6b017a3c35bd00098c/megan-fox-thumb.jpg",
493
+ "id": "4be38e6b017a3c35bd00098c"
494
+ }
495
+ },
496
+ {
497
+ "image":
498
+ {
499
+ "type": "profile",
500
+ "size": "original",
501
+ "height": 1305,
502
+ "width": 1000,
503
+ "url": "http://i3.themoviedb.org/profiles/990/4be38e76017a3c35bd000990/megan-fox-original.jpg",
504
+ "id": "4be38e76017a3c35bd000990"
505
+ }
506
+ },
507
+ {
508
+ "image":
509
+ {
510
+ "type": "profile",
511
+ "size": "profile",
512
+ "height": 241,
513
+ "width": 185,
514
+ "url": "http://i2.themoviedb.org/profiles/990/4be38e76017a3c35bd000990/megan-fox-profile.jpg",
515
+ "id": "4be38e76017a3c35bd000990"
516
+ }
517
+ },
518
+ {
519
+ "image":
520
+ {
521
+ "type": "profile",
522
+ "size": "thumb",
523
+ "height": 59,
524
+ "width": 45,
525
+ "url": "http://i3.themoviedb.org/profiles/990/4be38e76017a3c35bd000990/megan-fox-thumb.jpg",
526
+ "id": "4be38e76017a3c35bd000990"
527
+ }
528
+ },
529
+ {
530
+ "image":
531
+ {
532
+ "type": "profile",
533
+ "size": "original",
534
+ "height": 1303,
535
+ "width": 1000,
536
+ "url": "http://i1.themoviedb.org/profiles/844/4be38ea2017a3c35c1000844/megan-fox-original.jpg",
537
+ "id": "4be38ea2017a3c35c1000844"
538
+ }
539
+ },
540
+ {
541
+ "image":
542
+ {
543
+ "type": "profile",
544
+ "size": "profile",
545
+ "height": 241,
546
+ "width": 185,
547
+ "url": "http://i1.themoviedb.org/profiles/844/4be38ea2017a3c35c1000844/megan-fox-profile.jpg",
548
+ "id": "4be38ea2017a3c35c1000844"
549
+ }
550
+ },
551
+ {
552
+ "image":
553
+ {
554
+ "type": "profile",
555
+ "size": "thumb",
556
+ "height": 59,
557
+ "width": 45,
558
+ "url": "http://i3.themoviedb.org/profiles/844/4be38ea2017a3c35c1000844/megan-fox-thumb.jpg",
559
+ "id": "4be38ea2017a3c35c1000844"
560
+ }
561
+ },
562
+ {
563
+ "image":
564
+ {
565
+ "type": "profile",
566
+ "size": "original",
567
+ "height": 1305,
568
+ "width": 1000,
569
+ "url": "http://i3.themoviedb.org/profiles/8ca/4be38eae017a3c35bb0008ca/megan-fox-original.jpg",
570
+ "id": "4be38eae017a3c35bb0008ca"
571
+ }
572
+ },
573
+ {
574
+ "image":
575
+ {
576
+ "type": "profile",
577
+ "size": "profile",
578
+ "height": 241,
579
+ "width": 185,
580
+ "url": "http://i1.themoviedb.org/profiles/8ca/4be38eae017a3c35bb0008ca/megan-fox-profile.jpg",
581
+ "id": "4be38eae017a3c35bb0008ca"
582
+ }
583
+ },
584
+ {
585
+ "image":
586
+ {
587
+ "type": "profile",
588
+ "size": "thumb",
589
+ "height": 59,
590
+ "width": 45,
591
+ "url": "http://i3.themoviedb.org/profiles/8ca/4be38eae017a3c35bb0008ca/megan-fox-thumb.jpg",
592
+ "id": "4be38eae017a3c35bb0008ca"
593
+ }
594
+ },
595
+ {
596
+ "image":
597
+ {
598
+ "type": "profile",
599
+ "size": "original",
600
+ "height": 1349,
601
+ "width": 1000,
602
+ "url": "http://i3.themoviedb.org/profiles/a67/4be38f12017a3c35b4000a67/megan-fox-original.jpg",
603
+ "id": "4be38f12017a3c35b4000a67"
604
+ }
605
+ },
606
+ {
607
+ "image":
608
+ {
609
+ "type": "profile",
610
+ "size": "profile",
611
+ "height": 250,
612
+ "width": 185,
613
+ "url": "http://i3.themoviedb.org/profiles/a67/4be38f12017a3c35b4000a67/megan-fox-profile.jpg",
614
+ "id": "4be38f12017a3c35b4000a67"
615
+ }
616
+ },
617
+ {
618
+ "image":
619
+ {
620
+ "type": "profile",
621
+ "size": "thumb",
622
+ "height": 61,
623
+ "width": 45,
624
+ "url": "http://i3.themoviedb.org/profiles/a67/4be38f12017a3c35b4000a67/megan-fox-thumb.jpg",
625
+ "id": "4be38f12017a3c35b4000a67"
626
+ }
627
+ }
628
+ ]
629
+ }
630
+ ]