edools-api 0.4.0 → 0.5.0

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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/edools-api.gemspec +57 -11
  4. data/lib/edools.rb +2 -1
  5. data/lib/edools/base.rb +25 -0
  6. data/lib/edools/config.rb +2 -2
  7. data/lib/edools/core.rb +6 -1
  8. data/lib/edools/core/base.rb +3 -12
  9. data/lib/edools/core/course.rb +10 -0
  10. data/lib/edools/core/course_content.rb +15 -0
  11. data/lib/edools/core/course_module.rb +15 -0
  12. data/lib/edools/core/enrollment.rb +2 -2
  13. data/lib/edools/core/lesson.rb +10 -0
  14. data/lib/edools/core/media.rb +10 -0
  15. data/lib/edools/core/organization.rb +2 -2
  16. data/lib/edools/core/path.rb +10 -0
  17. data/lib/edools/core/registration.rb +2 -2
  18. data/lib/edools/core/school.rb +2 -2
  19. data/lib/edools/core/school_product.rb +2 -2
  20. data/lib/edools/core/session.rb +1 -1
  21. data/lib/edools/core/student.rb +2 -2
  22. data/lib/edools/ecommerce.rb +2 -0
  23. data/lib/edools/ecommerce/base.rb +8 -0
  24. data/lib/edools/ecommerce/product.rb +21 -0
  25. data/lib/edools/initialization.rb +4 -1
  26. data/lib/edools/paginated_collection.rb +37 -0
  27. data/spec/edools/core/course_content_spec.rb +35 -0
  28. data/spec/edools/core/course_module_spec.rb +35 -0
  29. data/spec/edools/core/course_spec.rb +36 -0
  30. data/spec/edools/core/enrollment_spec.rb +1 -3
  31. data/spec/edools/core/lesson_spec.rb +39 -0
  32. data/spec/edools/core/media_spec.rb +40 -0
  33. data/spec/edools/core/path_spec.rb +36 -0
  34. data/spec/edools/core/school_product_spec.rb +10 -6
  35. data/spec/edools/ecommerce/base_spec.rb +9 -0
  36. data/spec/edools/ecommerce/product_spec.rb +38 -0
  37. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/create_the_course.yml +66 -0
  38. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/destroy_the_course.yml +114 -0
  39. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/finds_all_course.yml +146 -0
  40. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/finds_the_course.yml +62 -0
  41. data/spec/fixtures/vcr_cassettes/Edools_Core_Course/update_the_course.yml +118 -0
  42. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/create_the_school_class.yml → Edools_Core_CourseContent/create_the_course_content.yml} +11 -11
  43. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/destroy_the_school_class.yml → Edools_Core_CourseContent/destroy_the_course_content.yml} +14 -14
  44. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseContent/finds_all_course_content.yml +64 -0
  45. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/finds_the_school_class.yml → Edools_Core_CourseContent/finds_the_course_content.yml} +9 -9
  46. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/update_the_school_class.yml → Edools_Core_CourseContent/update_the_course_content.yml} +17 -17
  47. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/create_the_course_module.yml +66 -0
  48. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/destroy_the_course_module.yml +114 -0
  49. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/finds_all_course_module.yml +78 -0
  50. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/finds_the_course_module.yml +67 -0
  51. data/spec/fixtures/vcr_cassettes/Edools_Core_CourseModule/update_the_course_module.yml +123 -0
  52. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/create_the_lesson.yml +66 -0
  53. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/destroy_the_lesson.yml +115 -0
  54. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/finds_all_lesson.yml +154 -0
  55. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/finds_the_lesson.yml +62 -0
  56. data/spec/fixtures/vcr_cassettes/Edools_Core_Lesson/update_the_lesson.yml +118 -0
  57. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/create_the_media.yml +68 -0
  58. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/destroy_the_media.yml +116 -0
  59. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/finds_all_media.yml +212 -0
  60. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/finds_the_media.yml +63 -0
  61. data/spec/fixtures/vcr_cassettes/Edools_Core_Media/update_the_media.yml +120 -0
  62. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/create_the_path.yml +66 -0
  63. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/destroy_the_path.yml +114 -0
  64. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/finds_all_path.yml +78 -0
  65. data/spec/fixtures/vcr_cassettes/{Edools_Core_SchoolClass/finds_all_school_class.yml → Edools_Core_Path/finds_the_path.yml} +11 -10
  66. data/spec/fixtures/vcr_cassettes/Edools_Core_Path/update_the_path.yml +117 -0
  67. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/create_the_school_product.yml +11 -11
  68. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/destroy_the_school_product.yml +17 -16
  69. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/finds_all_school_product.yml +173 -125
  70. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/finds_the_school_product.yml +10 -10
  71. data/spec/fixtures/vcr_cassettes/Edools_Core_SchoolProduct/update_the_school_product.yml +18 -18
  72. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/create_the_product.yml +65 -0
  73. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/destroy_the_product.yml +114 -0
  74. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/finds_all_product.yml +179 -0
  75. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/finds_the_product.yml +62 -0
  76. data/spec/fixtures/vcr_cassettes/Edools_Ecommerce_Product/update_the_product.yml +117 -0
  77. metadata +56 -10
  78. data/lib/edools/core/paginated_collection.rb +0 -30
  79. data/lib/edools/core/school_class.rb +0 -14
  80. data/spec/edools/core/school_class_spec.rb +0 -35
@@ -0,0 +1,146 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/courses.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.edools.core.v1+json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Security-Policy-Report-Only:
26
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
27
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
28
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
+ Content-Type:
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
+ Date:
33
+ - Mon, 06 Jul 2015 18:40:45 GMT
34
+ Etag:
35
+ - '"f8412a487df03d773a282373f73fe244"'
36
+ Server:
37
+ - nginx/1.4.7
38
+ Status:
39
+ - 200 OK
40
+ Strict-Transport-Security:
41
+ - max-age=631152000; includeSubdomains
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - DENY
46
+ X-Request-Id:
47
+ - 325fb1eb-a2c3-4221-b168-586d64454a47
48
+ X-Runtime:
49
+ - '0.261334'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '3781'
54
+ Connection:
55
+ - keep-alive
56
+ body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LCJ0aXRsZSI6IkVzdGUgw6kgbyBUw610dWxvIGRvIEN1
140
+ cnNvIn1dLCJsaWJyYXJ5Ijp7ImlkIjoyfSwibGlicmFyeV90YWdzIjpbeyJp
141
+ ZCI6MjIwLCJuYW1lIjoiR2VyYWwifV19fV0sImN1cnJlbnRfcGFnZSI6MSwi
142
+ cGVyX3BhZ2UiOjEwLCJ0b3RhbF9wYWdlcyI6NSwidG90YWxfY291bnQiOjQ5
143
+ fQ==
144
+ http_version:
145
+ recorded_at: Mon, 06 Jul 2015 18:40:45 GMT
146
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/courses/12473.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.edools.core.v1+json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Security-Policy-Report-Only:
26
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
27
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
28
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
+ Content-Type:
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
+ Date:
33
+ - Mon, 06 Jul 2015 18:42:41 GMT
34
+ Etag:
35
+ - '"05afd31daad949eabd999d7e754075da"'
36
+ Server:
37
+ - nginx/1.4.7
38
+ Status:
39
+ - 200 OK
40
+ Strict-Transport-Security:
41
+ - max-age=631152000; includeSubdomains
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - DENY
46
+ X-Request-Id:
47
+ - ae4c1d06-413f-4782-8709-b87535ea073e
48
+ X-Runtime:
49
+ - '0.063856'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Transfer-Encoding:
53
+ - chunked
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":12473,"name":"Edools API Test","description":null,"image_url":null,"created_at":"2015-07-06
59
+ 18:40:47 UTC","updated_at":"2015-07-06 18:40:47 UTC","duration":null,"path_ids":[],"forum_section_ids":[],"library_resource":{"id":121410,"school_products":[],"library":{"id":2},"library_tags":[]}}'
60
+ http_version:
61
+ recorded_at: Mon, 06 Jul 2015 18:42:41 GMT
62
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,118 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://core.edools.com/courses/12473.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.edools.core.v1+json
12
+ Authorization:
13
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Cache-Control:
24
+ - max-age=0, private, must-revalidate
25
+ Content-Security-Policy-Report-Only:
26
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
27
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
28
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
+ Content-Type:
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
+ Date:
33
+ - Mon, 06 Jul 2015 18:42:42 GMT
34
+ Etag:
35
+ - '"05afd31daad949eabd999d7e754075da"'
36
+ Server:
37
+ - nginx/1.4.7
38
+ Status:
39
+ - 200 OK
40
+ Strict-Transport-Security:
41
+ - max-age=631152000; includeSubdomains
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - DENY
46
+ X-Request-Id:
47
+ - 0af104c5-8729-45eb-a23d-8d0077e8cd58
48
+ X-Runtime:
49
+ - '0.055374'
50
+ X-Xss-Protection:
51
+ - 1; mode=block
52
+ Content-Length:
53
+ - '295'
54
+ Connection:
55
+ - keep-alive
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":12473,"name":"Edools API Test","description":null,"image_url":null,"created_at":"2015-07-06
59
+ 18:40:47 UTC","updated_at":"2015-07-06 18:40:47 UTC","duration":null,"path_ids":[],"forum_section_ids":[],"library_resource":{"id":121410,"school_products":[],"library":{"id":2},"library_tags":[]}}'
60
+ http_version:
61
+ recorded_at: Mon, 06 Jul 2015 18:42:42 GMT
62
+ - request:
63
+ method: put
64
+ uri: https://core.edools.com/courses/12473.json
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"course":{"id":12473,"name":"Edools API Test","description":"Edools
68
+ API test","image_url":null,"created_at":"2015-07-06 18:40:47 UTC","updated_at":"2015-07-06
69
+ 18:40:47 UTC","duration":null,"path_ids":[],"forum_section_ids":[],"library_resource":{"id":121410,"school_products":[],"library":{"id":2},"library_tags":[]}}}'
70
+ headers:
71
+ Content-Type:
72
+ - application/json
73
+ Authorization:
74
+ - Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
75
+ Accept:
76
+ - application/vnd.edools.core.v1+json
77
+ Accept-Encoding:
78
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
+ User-Agent:
80
+ - Ruby
81
+ response:
82
+ status:
83
+ code: 204
84
+ message: No Content
85
+ headers:
86
+ Cache-Control:
87
+ - no-cache
88
+ Content-Security-Policy-Report-Only:
89
+ - default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
90
+ 'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
91
+ https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
92
+ style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
93
+ Date:
94
+ - Mon, 06 Jul 2015 18:42:43 GMT
95
+ Server:
96
+ - nginx/1.4.7
97
+ Status:
98
+ - 204 No Content
99
+ Strict-Transport-Security:
100
+ - max-age=631152000; includeSubdomains
101
+ X-Content-Type-Options:
102
+ - nosniff
103
+ X-Frame-Options:
104
+ - DENY
105
+ X-Request-Id:
106
+ - 5ae037fc-8f18-4588-96a7-f66eb3a7bea1
107
+ X-Runtime:
108
+ - '0.055364'
109
+ X-Xss-Protection:
110
+ - 1; mode=block
111
+ Connection:
112
+ - keep-alive
113
+ body:
114
+ encoding: UTF-8
115
+ string: ''
116
+ http_version:
117
+ recorded_at: Mon, 06 Jul 2015 18:42:43 GMT
118
+ recorded_with: VCR 2.9.2
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://core.edools.com/school_products/156/school_classes.json
5
+ uri: https://core.edools.com/course_modules/11329/course_contents.json
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"school_class":{"title":"teste"}}'
8
+ string: '{"course_content":{"name":"Edools API Test"}}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
@@ -30,13 +30,13 @@ http_interactions:
30
30
  https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
31
31
  style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
32
32
  Content-Type:
33
- - application/json; charset=utf-8
33
+ - application/vnd.edools.core.v1+json; charset=utf-8
34
34
  Date:
35
- - Wed, 30 Jul 2014 18:27:15 GMT
35
+ - Mon, 06 Jul 2015 19:22:07 GMT
36
36
  Etag:
37
- - '"7f8ba527fee3509a84df034216b43e19"'
37
+ - '"571844e88308200d6d113b8f9f10533d"'
38
38
  Location:
39
- - https://core.edools.com/school_classes/168
39
+ - https://core.edools.com/course_contents/52239
40
40
  Server:
41
41
  - nginx/1.4.7
42
42
  Status:
@@ -48,18 +48,18 @@ http_interactions:
48
48
  X-Frame-Options:
49
49
  - DENY
50
50
  X-Request-Id:
51
- - 82da9c30-e5c0-47af-9ad0-8142f86b1b0f
51
+ - 420bc5e3-9aa8-4343-bb66-e91c09f7a5de
52
52
  X-Runtime:
53
- - '0.044601'
53
+ - '0.082276'
54
54
  X-Xss-Protection:
55
55
  - 1; mode=block
56
56
  Content-Length:
57
- - '180'
57
+ - '205'
58
58
  Connection:
59
59
  - keep-alive
60
60
  body:
61
61
  encoding: UTF-8
62
- string: '{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156,"created_at":"2014-07-30T18:27:15.159Z","updated_at":"2014-07-30T18:27:15.159Z","forum_section_id":null}'
62
+ string: '{"id":52239,"course_module_id":11329,"order":null,"content_id":null,"content_type":null,"created_at":"2015-07-06T19:22:07.549Z","updated_at":"2015-07-06T19:22:07.549Z","available":null,"downloadable":null}'
63
63
  http_version:
64
- recorded_at: Wed, 30 Jul 2014 18:27:15 GMT
64
+ recorded_at: Mon, 06 Jul 2015 19:22:07 GMT
65
65
  recorded_with: VCR 2.9.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://core.edools.com/school_classes/168.json
5
+ uri: https://core.edools.com/course_contents/52239.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -28,11 +28,11 @@ http_interactions:
28
28
  https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
29
29
  style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
30
30
  Content-Type:
31
- - application/json; charset=utf-8
31
+ - application/vnd.edools.core.v1+json; charset=utf-8
32
32
  Date:
33
- - Wed, 30 Jul 2014 18:32:35 GMT
33
+ - Mon, 06 Jul 2015 19:22:56 GMT
34
34
  Etag:
35
- - '"dcb41408a68ae8c04a207735c3183a5b"'
35
+ - '"d7691c93ab409904d622fa7ea094b965"'
36
36
  Server:
37
37
  - nginx/1.4.7
38
38
  Status:
@@ -44,23 +44,23 @@ http_interactions:
44
44
  X-Frame-Options:
45
45
  - DENY
46
46
  X-Request-Id:
47
- - 8a5bd4e1-a5c1-403d-a3ad-7df050fbdc3d
47
+ - 65fe626a-2313-47f0-ad8d-03e982d816a0
48
48
  X-Runtime:
49
- - '0.030227'
49
+ - '0.042945'
50
50
  X-Xss-Protection:
51
51
  - 1; mode=block
52
52
  Content-Length:
53
- - '76'
53
+ - '114'
54
54
  Connection:
55
55
  - keep-alive
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"id":168,"start_at":null,"end_at":null,"code":null,"school_product_id":156}'
58
+ string: '{"id":52239,"content_id":null,"content_type":null,"order":null,"downloadable":null,"available":null,"lesson":null}'
59
59
  http_version:
60
- recorded_at: Wed, 30 Jul 2014 18:32:35 GMT
60
+ recorded_at: Mon, 06 Jul 2015 19:22:56 GMT
61
61
  - request:
62
62
  method: delete
63
- uri: https://core.edools.com/school_classes/168.json
63
+ uri: https://core.edools.com/course_contents/52239.json
64
64
  body:
65
65
  encoding: US-ASCII
66
66
  string: ''
@@ -86,7 +86,7 @@ http_interactions:
86
86
  https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
87
87
  style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
88
88
  Date:
89
- - Wed, 30 Jul 2014 18:32:35 GMT
89
+ - Mon, 06 Jul 2015 19:22:56 GMT
90
90
  Server:
91
91
  - nginx/1.4.7
92
92
  Status:
@@ -98,9 +98,9 @@ http_interactions:
98
98
  X-Frame-Options:
99
99
  - DENY
100
100
  X-Request-Id:
101
- - da4da47c-52c1-49a2-9374-34e8ef06e3ed
101
+ - c8fdb98a-e0cf-49db-94fc-77aa00f1b26d
102
102
  X-Runtime:
103
- - '0.045663'
103
+ - '0.062218'
104
104
  X-Xss-Protection:
105
105
  - 1; mode=block
106
106
  Connection:
@@ -109,5 +109,5 @@ http_interactions:
109
109
  encoding: UTF-8
110
110
  string: ''
111
111
  http_version:
112
- recorded_at: Wed, 30 Jul 2014 18:32:36 GMT
112
+ recorded_at: Mon, 06 Jul 2015 19:22:56 GMT
113
113
  recorded_with: VCR 2.9.2