ted_api 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +56 -0
  5. data/Rakefile +8 -0
  6. data/lib/faraday/response/raise_ted_api_error.rb +43 -0
  7. data/lib/ted_api.rb +20 -0
  8. data/lib/ted_api/client.rb +39 -0
  9. data/lib/ted_api/client/countries.rb +18 -0
  10. data/lib/ted_api/client/events.rb +18 -0
  11. data/lib/ted_api/client/languages.rb +18 -0
  12. data/lib/ted_api/client/quotes.rb +18 -0
  13. data/lib/ted_api/client/rating_words.rb +18 -0
  14. data/lib/ted_api/client/speakers.rb +18 -0
  15. data/lib/ted_api/client/tags.rb +18 -0
  16. data/lib/ted_api/client/talks.rb +26 -0
  17. data/lib/ted_api/client/themes.rb +18 -0
  18. data/lib/ted_api/configuration.rb +54 -0
  19. data/lib/ted_api/connection.rb +30 -0
  20. data/lib/ted_api/error.rb +34 -0
  21. data/lib/ted_api/request.rb +34 -0
  22. data/lib/ted_api/version.rb +3 -0
  23. data/spec/faraday/response_spec.rb +35 -0
  24. data/spec/fixtures/countries.json +1 -0
  25. data/spec/fixtures/countries.xml +109 -0
  26. data/spec/fixtures/country.json +1 -0
  27. data/spec/fixtures/country.xml +8 -0
  28. data/spec/fixtures/event.json +1 -0
  29. data/spec/fixtures/event.xml +12 -0
  30. data/spec/fixtures/events.json +1 -0
  31. data/spec/fixtures/events.xml +189 -0
  32. data/spec/fixtures/language.json +1 -0
  33. data/spec/fixtures/language.xml +8 -0
  34. data/spec/fixtures/languages.json +1 -0
  35. data/spec/fixtures/languages.xml +106 -0
  36. data/spec/fixtures/quote.json +1 -0
  37. data/spec/fixtures/quote.xml +14 -0
  38. data/spec/fixtures/quotes.json +2 -0
  39. data/spec/fixtures/quotes.xml +230 -0
  40. data/spec/fixtures/rating_word.json +1 -0
  41. data/spec/fixtures/rating_word.xml +7 -0
  42. data/spec/fixtures/rating_words.json +1 -0
  43. data/spec/fixtures/rating_words.xml +65 -0
  44. data/spec/fixtures/speaker.json +1 -0
  45. data/spec/fixtures/speaker.xml +16 -0
  46. data/spec/fixtures/speakers.json +1 -0
  47. data/spec/fixtures/speakers.xml +269 -0
  48. data/spec/fixtures/speakers_by_talk.json +1 -0
  49. data/spec/fixtures/subtitles.json +2 -0
  50. data/spec/fixtures/tag.json +1 -0
  51. data/spec/fixtures/tag.xml +11 -0
  52. data/spec/fixtures/tags.json +1 -0
  53. data/spec/fixtures/tags.xml +169 -0
  54. data/spec/fixtures/talk.json +1 -0
  55. data/spec/fixtures/talk.xml +302 -0
  56. data/spec/fixtures/talks.json +1 -0
  57. data/spec/fixtures/talks.xml +249 -0
  58. data/spec/fixtures/theme.json +1 -0
  59. data/spec/fixtures/theme.xml +19 -0
  60. data/spec/fixtures/themes.json +1 -0
  61. data/spec/fixtures/themes.xml +294 -0
  62. data/spec/spec_helper.rb +38 -0
  63. data/spec/ted_api/client/countries_spec.rb +46 -0
  64. data/spec/ted_api/client/events_spec.rb +46 -0
  65. data/spec/ted_api/client/languages_spec.rb +46 -0
  66. data/spec/ted_api/client/quotes_spec.rb +46 -0
  67. data/spec/ted_api/client/rating_words_spec.rb +46 -0
  68. data/spec/ted_api/client/speakers_spec.rb +46 -0
  69. data/spec/ted_api/client/tags_spec.rb +46 -0
  70. data/spec/ted_api/client/talks_spec.rb +78 -0
  71. data/spec/ted_api/client/themes_spec.rb +46 -0
  72. data/spec/ted_api/client_spec.rb +26 -0
  73. data/spec/ted_api_spec.rb +21 -0
  74. data/ted_api.gemspec +33 -0
  75. metadata +347 -0
@@ -0,0 +1 @@
1
+ {"language":{"language_code":"af","name":"Afrikaans","description":null}}
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <language>
4
+ <language_code>af</language_code>
5
+ <name>Afrikaans</name>
6
+ <description></description>
7
+ </language>
8
+ </response>
@@ -0,0 +1 @@
1
+ {"languages":[{"language":{"language_code":"af","name":"Afrikaans","description":null}},{"language":{"language_code":"sq","name":"Albanian","description":null}},{"language":{"language_code":"amh","name":"Amharic","description":null}},{"language":{"language_code":"ar","name":"Arabic","description":null}},{"language":{"language_code":"hy","name":"Armenian","description":null}},{"language":{"language_code":"as","name":"Assamese","description":null}},{"language":{"language_code":"az","name":"Azerbaijani","description":null}},{"language":{"language_code":"eu","name":"Basque","description":null}},{"language":{"language_code":"bn","name":"Bengali","description":null}},{"language":{"language_code":"bi","name":"Bislama","description":null}},{"language":{"language_code":"bs","name":"Bosnian","description":null}},{"language":{"language_code":"bg","name":"Bulgarian","description":null}},{"language":{"language_code":"my","name":"Burmese","description":null}},{"language":{"language_code":"ca","name":"Catalan","description":null}},{"language":{"language_code":"ceb","name":"Cebuano","description":null}},{"language":{"language_code":"zh-cn","name":"Chinese, Simplified","description":null}},{"language":{"language_code":"zh-tw","name":"Chinese, Traditional","description":null}},{"language":{"language_code":"zh","name":"Chinese, Yue","description":null}},{"language":{"language_code":"ht","name":"Creole, Haitian","description":null}},{"language":{"language_code":"hr","name":"Croatian","description":null}}]}
@@ -0,0 +1,106 @@
1
+
2
+ <?xml version="1.0" encoding="UTF-8"?>
3
+ <response>
4
+ <languages>
5
+ <language>
6
+ <language_code>af</language_code>
7
+ <name>Afrikaans</name>
8
+ <description></description>
9
+ </language>
10
+ <language>
11
+ <language_code>sq</language_code>
12
+ <name>Albanian</name>
13
+ <description></description>
14
+ </language>
15
+ <language>
16
+ <language_code>amh</language_code>
17
+ <name>Amharic</name>
18
+ <description></description>
19
+ </language>
20
+ <language>
21
+ <language_code>ar</language_code>
22
+ <name>Arabic</name>
23
+ <description></description>
24
+ </language>
25
+ <language>
26
+ <language_code>hy</language_code>
27
+ <name>Armenian</name>
28
+ <description></description>
29
+ </language>
30
+ <language>
31
+ <language_code>as</language_code>
32
+ <name>Assamese</name>
33
+ <description></description>
34
+ </language>
35
+ <language>
36
+ <language_code>az</language_code>
37
+ <name>Azerbaijani</name>
38
+ <description></description>
39
+ </language>
40
+ <language>
41
+ <language_code>eu</language_code>
42
+ <name>Basque</name>
43
+ <description></description>
44
+ </language>
45
+ <language>
46
+ <language_code>bn</language_code>
47
+ <name>Bengali</name>
48
+ <description></description>
49
+ </language>
50
+ <language>
51
+ <language_code>bi</language_code>
52
+ <name>Bislama</name>
53
+ <description></description>
54
+ </language>
55
+ <language>
56
+ <language_code>bs</language_code>
57
+ <name>Bosnian</name>
58
+ <description></description>
59
+ </language>
60
+ <language>
61
+ <language_code>bg</language_code>
62
+ <name>Bulgarian</name>
63
+ <description></description>
64
+ </language>
65
+ <language>
66
+ <language_code>my</language_code>
67
+ <name>Burmese</name>
68
+ <description></description>
69
+ </language>
70
+ <language>
71
+ <language_code>ca</language_code>
72
+ <name>Catalan</name>
73
+ <description></description>
74
+ </language>
75
+ <language>
76
+ <language_code>ceb</language_code>
77
+ <name>Cebuano</name>
78
+ <description></description>
79
+ </language>
80
+ <language>
81
+ <language_code>zh-cn</language_code>
82
+ <name>Chinese, Simplified</name>
83
+ <description></description>
84
+ </language>
85
+ <language>
86
+ <language_code>zh-tw</language_code>
87
+ <name>Chinese, Traditional</name>
88
+ <description></description>
89
+ </language>
90
+ <language>
91
+ <language_code>zh</language_code>
92
+ <name>Chinese, Yue</name>
93
+ <description></description>
94
+ </language>
95
+ <language>
96
+ <language_code>ht</language_code>
97
+ <name>Creole, Haitian</name>
98
+ <description></description>
99
+ </language>
100
+ <language>
101
+ <language_code>hr</language_code>
102
+ <name>Croatian</name>
103
+ <description></description>
104
+ </language>
105
+ </languages>
106
+ </response>
@@ -0,0 +1 @@
1
+ {"quote":{"id":1,"talk_id":2,"speaker_id":3,"slug":"around_the_world_women_and_children_spend_40_billion_hours","quote":"[Around the world], women and children spend 40 billion hours a year fetching water. That\u2019s as if the entire workforce of the State of California worked full time for a year doing nothing but fetching water.","count":3,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}}
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <quote>
4
+ <id>1</id>
5
+ <talk_id>2</talk_id>
6
+ <speaker_id>3</speaker_id>
7
+ <slug>around_the_world_women_and_children_spend_40_billion_hours</slug>
8
+ <quote>[Around the world], women and children spend 40 billion hours a year fetching water. That’s as if the entire workforce of the State of California worked full time for a year doing nothing but fetching water.</quote>
9
+ <count>3</count>
10
+ <context></context>
11
+ <created_at>2012-02-14 02:26:36</created_at>
12
+ <updated_at>2012-02-14 02:26:36</updated_at>
13
+ </quote>
14
+ </response>
@@ -0,0 +1,2 @@
1
+
2
+ {"quotes":[{"quote":{"id":1,"talk_id":2,"speaker_id":3,"slug":"around_the_world_women_and_children_spend_40_billion_hours","quote":"[Around the world], women and children spend 40 billion hours a year fetching water. That\u2019s as if the entire workforce of the State of California worked full time for a year doing nothing but fetching water.","count":3,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":2,"talk_id":2,"speaker_id":3,"slug":"if_this_were_india_in_this_room_of_1500_people_only_three","quote":"If this were India, in this room [of 1500 people], only three of us would have a car. If this were Afghanistan, only one person in this room would know how to use the Internet. If this were Zambia, 300 of you would be farmers, 100 of you would have AIDS or HIV.","count":6,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":3,"talk_id":2,"speaker_id":3,"slug":"it_is_necessary_to_have_a_very_clear_vision_of_the_world_that","quote":"It is necessary to have a very clear vision of the world that we live in \u2026 the world where women spend two to three hours every day grinding grain for their families to eat.","count":0,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":4,"talk_id":2,"speaker_id":3,"slug":"the_number_one_cause_of_death_in_children_under_five_water_b","quote":"The number-one cause of death in children under five \u2026 water-borne diseases? Diarrhea? Malnutrition? No: it\u2019s breathing the smoke from indoor cooking fires \u2014 acute respiratory infections. Over two million deaths every year.","count":0,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":5,"talk_id":2,"speaker_id":3,"slug":"we_need_to_rethink_our_development_strategies_so_that_we_re_n","quote":"We need to rethink our development strategies, so that we\u2019re not promoting educational campaigns to get people to stop being farmers, but rather to stop being poor farmers.","count":2,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":6,"talk_id":3,"speaker_id":4,"slug":"economics_taught_in_most_of_the_elite_universities_are_practic","quote":"Economics taught in most of the elite universities are practically useless in my context. My country [Afghanistan] is dominated by drug economy and a mafia; textbook economics does not work in my context.","count":3,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":7,"talk_id":3,"speaker_id":4,"slug":"every_afghan_sees_the_sky_as_a_source_of_fear_we_were_bombed","quote":"Every Afghan sees the sky as a source of fear. We were bombed practically out of existence.","count":0,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":8,"talk_id":3,"speaker_id":4,"slug":"money_is_not_capital_in_most_of_the_developing_countries_it_s","quote":"Money is not capital in most of the developing countries. It\u2019s just cash \u2014 because it lacks the institutional, organizational, managerial forms to turn it into capital.","count":0,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":9,"talk_id":3,"speaker_id":4,"slug":"the_majority_of_the_world_benefits_neither_from_capitalism_nor","quote":"The majority of the world benefits neither from capitalism nor from democratic systems. Most of the globe experiences the state as repressive, as an organization that is concerned about denial of rights \u2014 about denial of justice, rather than provision of it.","count":2,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":10,"talk_id":3,"speaker_id":4,"slug":"when_i_joined_as_finance_minister_of_afghanistan_i_thought","quote":"When I joined as finance minister [of Afghanistan], I thought that the chances of my living more than three years would not be more than five percent.","count":0,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":11,"talk_id":3,"speaker_id":4,"slug":"when_i_went_back_to_afghanistan_after_23_years_space_had_expa","quote":"When I went back to Afghanistan after 23 years, space had expanded. Every conceivable form of infrastructure had broken down. Travel between two cities that used to take three hours now took 12.","count":0,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":12,"talk_id":4,"speaker_id":5,"slug":"it_s_not_good_enough_for_us_to_have_generations_of_kids_that","quote":"It\u2019s not good enough for us to have generations of kids that \u2026 look forward to a better version of a cell phone with a video in it. They need to look forward to exploration.","count":7,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":13,"talk_id":5,"speaker_id":6,"slug":"cars_are_not_a_suit_of_clothes_cars_are_an_avatar_cars_are_a","quote":"Cars are not a suit of clothes; cars are an avatar. Cars are an expansion of yourself: they take your thoughts, your ideas, your emotions, and they multiply it.","count":6,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":14,"talk_id":6,"speaker_id":7,"slug":"any_virus_that_s_been_sequenced_today_that_genome_can_be_mad","quote":"Any virus that\u2019s been sequenced today \u2014 that genome can be made.","count":2,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":15,"talk_id":12,"speaker_id":13,"slug":"it_s_possible_although_far_fetched_that_in_the_future_we_cou","quote":"It\u2019s possible, although far-fetched, that in the future we could think of cancer being used as a therapy.","count":4,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":16,"talk_id":13,"speaker_id":14,"slug":"for_me_every_day_is_a_new_thing_i_approach_each_project_with","quote":"For me, every day is a new thing. I approach each project with a new insecurity, almost like the first project I ever did, and I get the sweats, I go in and start working, I\u2019m not sure where I\u2019m going.","count":8,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":17,"talk_id":13,"speaker_id":14,"slug":"if_i_knew_where_i_was_going_i_wouldn_t_do_it_when_i_can_pred","quote":"If I knew where I was going, I wouldn\u2019t do it. When I can predict or plan it, I don\u2019t do it.","count":4,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":18,"talk_id":14,"speaker_id":15,"slug":"imagine_spending_seven_years_at_mit_and_research_laboratories","quote":"Imagine spending seven years at MIT and research laboratories, only to find out that you\u2019re a performance artist.","count":5,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":19,"talk_id":16,"speaker_id":17,"slug":"women_tend_to_collect_more_pieces_of_data_when_they_think_p","quote":"[Women] tend to collect more pieces of data when they think, put them into more complex patterns, see more options and outcomes. They tend to be contextual, holistic thinkers.","count":2,"context":null,"created_at":"2012-02-14 02:26:36","updated_at":"2012-02-14 02:26:36"}},{"quote":{"id":20,"talk_id":16,"speaker_id":17,"slug":"a_world_without_love_is_a_deadly_place","quote":"A world without love is a deadly place.","count":149,"context":"","created_at":"2012-02-14 02:26:36","updated_at":"2012-02-22 18:56:46"}}],"counts":{"this":20,"total":1826}}
@@ -0,0 +1,230 @@
1
+
2
+ <?xml version="1.0" encoding="UTF-8"?>
3
+ <response>
4
+ <quotes>
5
+ <quote>
6
+ <id>1</id>
7
+ <talk_id>2</talk_id>
8
+ <speaker_id>3</speaker_id>
9
+ <slug>around_the_world_women_and_children_spend_40_billion_hours</slug>
10
+ <quote>[Around the world], women and children spend 40 billion hours a year fetching water. That’s as if the entire workforce of the State of California worked full time for a year doing nothing but fetching water.</quote>
11
+ <count>3</count>
12
+ <context></context>
13
+ <created_at>2012-02-14 02:26:36</created_at>
14
+ <updated_at>2012-02-14 02:26:36</updated_at>
15
+ </quote>
16
+ <quote>
17
+ <id>2</id>
18
+ <talk_id>2</talk_id>
19
+ <speaker_id>3</speaker_id>
20
+ <slug>if_this_were_india_in_this_room_of_1500_people_only_three</slug>
21
+ <quote>If this were India, in this room [of 1500 people], only three of us would have a car. If this were Afghanistan, only one person in this room would know how to use the Internet. If this were Zambia, 300 of you would be farmers, 100 of you would have AIDS or HIV.</quote>
22
+ <count>6</count>
23
+ <context></context>
24
+ <created_at>2012-02-14 02:26:36</created_at>
25
+ <updated_at>2012-02-14 02:26:36</updated_at>
26
+ </quote>
27
+ <quote>
28
+ <id>3</id>
29
+ <talk_id>2</talk_id>
30
+ <speaker_id>3</speaker_id>
31
+ <slug>it_is_necessary_to_have_a_very_clear_vision_of_the_world_that</slug>
32
+ <quote>It is necessary to have a very clear vision of the world that we live in … the world where women spend two to three hours every day grinding grain for their families to eat.</quote>
33
+ <count>0</count>
34
+ <context></context>
35
+ <created_at>2012-02-14 02:26:36</created_at>
36
+ <updated_at>2012-02-14 02:26:36</updated_at>
37
+ </quote>
38
+ <quote>
39
+ <id>4</id>
40
+ <talk_id>2</talk_id>
41
+ <speaker_id>3</speaker_id>
42
+ <slug>the_number_one_cause_of_death_in_children_under_five_water_b</slug>
43
+ <quote>The number-one cause of death in children under five … water-borne diseases? Diarrhea? Malnutrition? No: it’s breathing the smoke from indoor cooking fires — acute respiratory infections. Over two million deaths every year.</quote>
44
+ <count>0</count>
45
+ <context></context>
46
+ <created_at>2012-02-14 02:26:36</created_at>
47
+ <updated_at>2012-02-14 02:26:36</updated_at>
48
+ </quote>
49
+ <quote>
50
+ <id>5</id>
51
+ <talk_id>2</talk_id>
52
+ <speaker_id>3</speaker_id>
53
+ <slug>we_need_to_rethink_our_development_strategies_so_that_we_re_n</slug>
54
+ <quote>We need to rethink our development strategies, so that we’re not promoting educational campaigns to get people to stop being farmers, but rather to stop being poor farmers.</quote>
55
+ <count>2</count>
56
+ <context></context>
57
+ <created_at>2012-02-14 02:26:36</created_at>
58
+ <updated_at>2012-02-14 02:26:36</updated_at>
59
+ </quote>
60
+ <quote>
61
+ <id>6</id>
62
+ <talk_id>3</talk_id>
63
+ <speaker_id>4</speaker_id>
64
+ <slug>economics_taught_in_most_of_the_elite_universities_are_practic</slug>
65
+ <quote>Economics taught in most of the elite universities are practically useless in my context. My country [Afghanistan] is dominated by drug economy and a mafia; textbook economics does not work in my context.</quote>
66
+ <count>3</count>
67
+ <context></context>
68
+ <created_at>2012-02-14 02:26:36</created_at>
69
+ <updated_at>2012-02-14 02:26:36</updated_at>
70
+ </quote>
71
+ <quote>
72
+ <id>7</id>
73
+ <talk_id>3</talk_id>
74
+ <speaker_id>4</speaker_id>
75
+ <slug>every_afghan_sees_the_sky_as_a_source_of_fear_we_were_bombed</slug>
76
+ <quote>Every Afghan sees the sky as a source of fear. We were bombed practically out of existence.</quote>
77
+ <count>0</count>
78
+ <context></context>
79
+ <created_at>2012-02-14 02:26:36</created_at>
80
+ <updated_at>2012-02-14 02:26:36</updated_at>
81
+ </quote>
82
+ <quote>
83
+ <id>8</id>
84
+ <talk_id>3</talk_id>
85
+ <speaker_id>4</speaker_id>
86
+ <slug>money_is_not_capital_in_most_of_the_developing_countries_it_s</slug>
87
+ <quote>Money is not capital in most of the developing countries. It’s just cash — because it lacks the institutional, organizational, managerial forms to turn it into capital.</quote>
88
+ <count>0</count>
89
+ <context></context>
90
+ <created_at>2012-02-14 02:26:36</created_at>
91
+ <updated_at>2012-02-14 02:26:36</updated_at>
92
+ </quote>
93
+ <quote>
94
+ <id>9</id>
95
+ <talk_id>3</talk_id>
96
+ <speaker_id>4</speaker_id>
97
+ <slug>the_majority_of_the_world_benefits_neither_from_capitalism_nor</slug>
98
+ <quote>The majority of the world benefits neither from capitalism nor from democratic systems. Most of the globe experiences the state as repressive, as an organization that is concerned about denial of rights — about denial of justice, rather than provision of it.</quote>
99
+ <count>2</count>
100
+ <context></context>
101
+ <created_at>2012-02-14 02:26:36</created_at>
102
+ <updated_at>2012-02-14 02:26:36</updated_at>
103
+ </quote>
104
+ <quote>
105
+ <id>10</id>
106
+ <talk_id>3</talk_id>
107
+ <speaker_id>4</speaker_id>
108
+ <slug>when_i_joined_as_finance_minister_of_afghanistan_i_thought</slug>
109
+ <quote>When I joined as finance minister [of Afghanistan], I thought that the chances of my living more than three years would not be more than five percent.</quote>
110
+ <count>0</count>
111
+ <context></context>
112
+ <created_at>2012-02-14 02:26:36</created_at>
113
+ <updated_at>2012-02-14 02:26:36</updated_at>
114
+ </quote>
115
+ <quote>
116
+ <id>11</id>
117
+ <talk_id>3</talk_id>
118
+ <speaker_id>4</speaker_id>
119
+ <slug>when_i_went_back_to_afghanistan_after_23_years_space_had_expa</slug>
120
+ <quote>When I went back to Afghanistan after 23 years, space had expanded. Every conceivable form of infrastructure had broken down. Travel between two cities that used to take three hours now took 12.</quote>
121
+ <count>0</count>
122
+ <context></context>
123
+ <created_at>2012-02-14 02:26:36</created_at>
124
+ <updated_at>2012-02-14 02:26:36</updated_at>
125
+ </quote>
126
+ <quote>
127
+ <id>12</id>
128
+ <talk_id>4</talk_id>
129
+ <speaker_id>5</speaker_id>
130
+ <slug>it_s_not_good_enough_for_us_to_have_generations_of_kids_that</slug>
131
+ <quote>It’s not good enough for us to have generations of kids that … look forward to a better version of a cell phone with a video in it. They need to look forward to exploration.</quote>
132
+ <count>7</count>
133
+ <context></context>
134
+ <created_at>2012-02-14 02:26:36</created_at>
135
+ <updated_at>2012-02-14 02:26:36</updated_at>
136
+ </quote>
137
+ <quote>
138
+ <id>13</id>
139
+ <talk_id>5</talk_id>
140
+ <speaker_id>6</speaker_id>
141
+ <slug>cars_are_not_a_suit_of_clothes_cars_are_an_avatar_cars_are_a</slug>
142
+ <quote>Cars are not a suit of clothes; cars are an avatar. Cars are an expansion of yourself: they take your thoughts, your ideas, your emotions, and they multiply it.</quote>
143
+ <count>6</count>
144
+ <context></context>
145
+ <created_at>2012-02-14 02:26:36</created_at>
146
+ <updated_at>2012-02-14 02:26:36</updated_at>
147
+ </quote>
148
+ <quote>
149
+ <id>14</id>
150
+ <talk_id>6</talk_id>
151
+ <speaker_id>7</speaker_id>
152
+ <slug>any_virus_that_s_been_sequenced_today_that_genome_can_be_mad</slug>
153
+ <quote>Any virus that’s been sequenced today — that genome can be made.</quote>
154
+ <count>2</count>
155
+ <context></context>
156
+ <created_at>2012-02-14 02:26:36</created_at>
157
+ <updated_at>2012-02-14 02:26:36</updated_at>
158
+ </quote>
159
+ <quote>
160
+ <id>15</id>
161
+ <talk_id>12</talk_id>
162
+ <speaker_id>13</speaker_id>
163
+ <slug>it_s_possible_although_far_fetched_that_in_the_future_we_cou</slug>
164
+ <quote>It’s possible, although far-fetched, that in the future we could think of cancer being used as a therapy.</quote>
165
+ <count>4</count>
166
+ <context></context>
167
+ <created_at>2012-02-14 02:26:36</created_at>
168
+ <updated_at>2012-02-14 02:26:36</updated_at>
169
+ </quote>
170
+ <quote>
171
+ <id>16</id>
172
+ <talk_id>13</talk_id>
173
+ <speaker_id>14</speaker_id>
174
+ <slug>for_me_every_day_is_a_new_thing_i_approach_each_project_with</slug>
175
+ <quote>For me, every day is a new thing. I approach each project with a new insecurity, almost like the first project I ever did, and I get the sweats, I go in and start working, I’m not sure where I’m going.</quote>
176
+ <count>8</count>
177
+ <context></context>
178
+ <created_at>2012-02-14 02:26:36</created_at>
179
+ <updated_at>2012-02-14 02:26:36</updated_at>
180
+ </quote>
181
+ <quote>
182
+ <id>17</id>
183
+ <talk_id>13</talk_id>
184
+ <speaker_id>14</speaker_id>
185
+ <slug>if_i_knew_where_i_was_going_i_wouldn_t_do_it_when_i_can_pred</slug>
186
+ <quote>If I knew where I was going, I wouldn’t do it. When I can predict or plan it, I don’t do it.</quote>
187
+ <count>4</count>
188
+ <context></context>
189
+ <created_at>2012-02-14 02:26:36</created_at>
190
+ <updated_at>2012-02-14 02:26:36</updated_at>
191
+ </quote>
192
+ <quote>
193
+ <id>18</id>
194
+ <talk_id>14</talk_id>
195
+ <speaker_id>15</speaker_id>
196
+ <slug>imagine_spending_seven_years_at_mit_and_research_laboratories</slug>
197
+ <quote>Imagine spending seven years at MIT and research laboratories, only to find out that you’re a performance artist.</quote>
198
+ <count>5</count>
199
+ <context></context>
200
+ <created_at>2012-02-14 02:26:36</created_at>
201
+ <updated_at>2012-02-14 02:26:36</updated_at>
202
+ </quote>
203
+ <quote>
204
+ <id>19</id>
205
+ <talk_id>16</talk_id>
206
+ <speaker_id>17</speaker_id>
207
+ <slug>women_tend_to_collect_more_pieces_of_data_when_they_think_p</slug>
208
+ <quote>[Women] tend to collect more pieces of data when they think, put them into more complex patterns, see more options and outcomes. They tend to be contextual, holistic thinkers.</quote>
209
+ <count>2</count>
210
+ <context></context>
211
+ <created_at>2012-02-14 02:26:36</created_at>
212
+ <updated_at>2012-02-14 02:26:36</updated_at>
213
+ </quote>
214
+ <quote>
215
+ <id>20</id>
216
+ <talk_id>16</talk_id>
217
+ <speaker_id>17</speaker_id>
218
+ <slug>a_world_without_love_is_a_deadly_place</slug>
219
+ <quote>A world without love is a deadly place.</quote>
220
+ <count>149</count>
221
+ <context></context>
222
+ <created_at>2012-02-14 02:26:36</created_at>
223
+ <updated_at>2012-02-22 18:56:46</updated_at>
224
+ </quote>
225
+ </quotes>
226
+ <counts>
227
+ <this>20</this>
228
+ <total>1826</total>
229
+ </counts>
230
+ </response>
@@ -0,0 +1 @@
1
+ {"rating_word":{"id":1,"name":"Beautiful"}}
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <rating_word>
4
+ <id>1</id>
5
+ <name>Beautiful</name>
6
+ </rating_word>
7
+ </response>
@@ -0,0 +1 @@
1
+ {"rating_words":[{"rating_word":{"id":1,"name":"Beautiful"}},{"rating_word":{"id":2,"name":"Confusing"}},{"rating_word":{"id":3,"name":"Courageous"}},{"rating_word":{"id":7,"name":"Funny"}},{"rating_word":{"id":8,"name":"Informative"}},{"rating_word":{"id":9,"name":"Ingenious"}},{"rating_word":{"id":10,"name":"Inspiring"}},{"rating_word":{"id":11,"name":"Longwinded"}},{"rating_word":{"id":21,"name":"Unconvincing"}},{"rating_word":{"id":22,"name":"Fascinating"}},{"rating_word":{"id":23,"name":"Jaw-dropping"}},{"rating_word":{"id":24,"name":"Persuasive"}},{"rating_word":{"id":25,"name":"OK"}},{"rating_word":{"id":26,"name":"Obnoxious"}}],"counts":{"this":14,"total":14}}
@@ -0,0 +1,65 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <response>
3
+ <rating_words>
4
+ <rating_word>
5
+ <id>1</id>
6
+ <name>Beautiful</name>
7
+ </rating_word>
8
+ <rating_word>
9
+ <id>2</id>
10
+ <name>Confusing</name>
11
+ </rating_word>
12
+ <rating_word>
13
+ <id>3</id>
14
+ <name>Courageous</name>
15
+ </rating_word>
16
+ <rating_word>
17
+ <id>7</id>
18
+ <name>Funny</name>
19
+ </rating_word>
20
+ <rating_word>
21
+ <id>8</id>
22
+ <name>Informative</name>
23
+ </rating_word>
24
+ <rating_word>
25
+ <id>9</id>
26
+ <name>Ingenious</name>
27
+ </rating_word>
28
+ <rating_word>
29
+ <id>10</id>
30
+ <name>Inspiring</name>
31
+ </rating_word>
32
+ <rating_word>
33
+ <id>11</id>
34
+ <name>Longwinded</name>
35
+ </rating_word>
36
+ <rating_word>
37
+ <id>21</id>
38
+ <name>Unconvincing</name>
39
+ </rating_word>
40
+ <rating_word>
41
+ <id>22</id>
42
+ <name>Fascinating</name>
43
+ </rating_word>
44
+ <rating_word>
45
+ <id>23</id>
46
+ <name>Jaw-dropping</name>
47
+ </rating_word>
48
+ <rating_word>
49
+ <id>24</id>
50
+ <name>Persuasive</name>
51
+ </rating_word>
52
+ <rating_word>
53
+ <id>25</id>
54
+ <name>OK</name>
55
+ </rating_word>
56
+ <rating_word>
57
+ <id>26</id>
58
+ <name>Obnoxious</name>
59
+ </rating_word>
60
+ </rating_words>
61
+ <counts>
62
+ <this>14</this>
63
+ <total>14</total>
64
+ </counts>
65
+ </response>