bookingsync-api 0.1.2 → 0.1.3

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile +11 -11
  5. data/Guardfile +1 -1
  6. data/README.md +1 -0
  7. data/Rakefile +13 -3
  8. data/bookingsync-api.gemspec +3 -3
  9. data/lib/bookingsync-api.rb +1 -1
  10. data/lib/bookingsync/api/client.rb +7 -4
  11. data/lib/bookingsync/api/client/booking_comments.rb +1 -1
  12. data/lib/bookingsync/api/client/living_rooms.rb +65 -0
  13. data/lib/bookingsync/api/error.rb +1 -1
  14. data/lib/bookingsync/api/middleware/logger.rb +6 -6
  15. data/lib/bookingsync/api/resource.rb +1 -1
  16. data/lib/bookingsync/api/response.rb +2 -2
  17. data/lib/bookingsync/api/serializer.rb +5 -5
  18. data/lib/bookingsync/api/version.rb +1 -1
  19. data/spec/bookingsync/api/client/bathrooms_spec.rb +10 -9
  20. data/spec/bookingsync/api/client/bedrooms_spec.rb +10 -9
  21. data/spec/bookingsync/api/client/bookings_spec.rb +13 -13
  22. data/spec/bookingsync/api/client/clients_spec.rb +13 -11
  23. data/spec/bookingsync/api/client/fees_spec.rb +2 -2
  24. data/spec/bookingsync/api/client/inquiries_spec.rb +12 -10
  25. data/spec/bookingsync/api/client/living_rooms_spec.rb +62 -0
  26. data/spec/bookingsync/api/client/nightly_rate_maps_spec.rb +1 -1
  27. data/spec/bookingsync/api/client/payments_spec.rb +8 -11
  28. data/spec/bookingsync/api/client/periods_spec.rb +5 -5
  29. data/spec/bookingsync/api/client/photos_spec.rb +6 -6
  30. data/spec/bookingsync/api/client/preferences_general_settings_spec.rb +1 -1
  31. data/spec/bookingsync/api/client/preferences_payments_spec.rb +0 -1
  32. data/spec/bookingsync/api/client/rates_rules_spec.rb +3 -4
  33. data/spec/bookingsync/api/client/rates_tables_spec.rb +4 -5
  34. data/spec/bookingsync/api/client/rental_agreements_spec.rb +5 -5
  35. data/spec/bookingsync/api/client/rentals_amenities_spec.rb +4 -4
  36. data/spec/bookingsync/api/client/rentals_fees_spec.rb +1 -1
  37. data/spec/bookingsync/api/client/rentals_spec.rb +7 -10
  38. data/spec/bookingsync/api/client/reviews_spec.rb +3 -6
  39. data/spec/bookingsync/api/client/seasons_spec.rb +4 -9
  40. data/spec/bookingsync/api/client/sources_spec.rb +4 -5
  41. data/spec/bookingsync/api/client/special_offers_spec.rb +6 -6
  42. data/spec/bookingsync/api/client/strict_bookings_spec.rb +8 -8
  43. data/spec/bookingsync/api/client_spec.rb +29 -15
  44. data/spec/bookingsync/api/error_spec.rb +3 -3
  45. data/spec/bookingsync/api/relation_spec.rb +8 -6
  46. data/spec/bookingsync/api/resource_spec.rb +29 -26
  47. data/spec/bookingsync/api/response_spec.rb +16 -15
  48. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_cancel_living_room/cancels_given_living_room.yml +69 -0
  49. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_create_living_room/creates_a_new_living_room.yml +82 -0
  50. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_edit_living_room/updates_given_living_room_by_ID.yml +75 -0
  51. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_living_room/returns_a_single_living_room.yml +84 -0
  52. data/spec/fixtures/cassettes/BookingSync_API_Client_LivingRooms/_living_rooms/returns_living_rooms.yml +84 -0
  53. data/spec/spec_helper.rb +12 -12
  54. metadata +29 -3
@@ -1,27 +1,28 @@
1
- require 'spec_helper'
1
+ require "spec_helper"
2
2
 
3
3
  describe BookingSync::API::Response do
4
4
  let(:headers) {
5
- {'Link' => '</rentals?page=2>; rel="next", </rentals?page=19>; rel="last"',
6
- 'Content-Type' => 'application/json'}
5
+ { "Link" => '</rentals?page=2>; rel="next", </rentals?page=19>; rel="last"',
6
+ "Content-Type" => "application/json" }
7
7
  }
8
8
  let(:links) {
9
- {:'rentals.photos' => 'https://www.bookingsync.com/api/v3/photos/{rentals.photos}'}
9
+ { :"rentals.photos" => "https://www.bookingsync.com/api/v3/photos/{rentals.photos}" } # rubocop:disable Style/HashSyntax
10
10
  }
11
11
  let(:resource_relations) { BookingSync::API::Relation.from_links(client,
12
- links) }
12
+ links)
13
+ }
13
14
  let(:rentals) do
14
- [{id: 1, name: 'rental 1', photos: [1, 43]},
15
- {id: 2, name: 'rental 2'}]
15
+ [{ id: 1, name: "rental 1", photos: [1, 43] },
16
+ { id: 2, name: "rental 2" }]
16
17
  end
17
18
  let(:client) do
18
19
  BookingSync::API::Client.new(test_access_token,
19
20
  base_url: "http://foo.com") do |conn|
20
21
  conn.builder.handlers.delete(Faraday::Adapter::NetHttp)
21
22
  conn.adapter :test, @stubs do |stub|
22
- stub.get '/rentals' do
23
- body = {links: links, rentals: rentals,
24
- meta: {count: 10}}.to_json
23
+ stub.get "/rentals" do
24
+ body = { links: links, rentals: rentals,
25
+ meta: { count: 10 } }.to_json
25
26
  [200, headers, body]
26
27
  end
27
28
  end
@@ -29,7 +30,7 @@ describe BookingSync::API::Response do
29
30
  end
30
31
  let(:response) do
31
32
  stubs = Faraday::Adapter::Test::Stubs.new
32
- client.call(:get, '/rentals')
33
+ client.call(:get, "/rentals")
33
34
  end
34
35
 
35
36
  describe "#resources_key" do
@@ -46,9 +47,9 @@ describe BookingSync::API::Response do
46
47
 
47
48
  describe "#resource_relations" do
48
49
  it "returns links to associated resources" do
49
- href = response.resource_relations[:'rentals.photos'].href
50
+ href = response.resource_relations[:"rentals.photos"].href
50
51
  expect(href).not_to be_nil
51
- expect(href).to eq(resource_relations[:'rentals.photos'].href)
52
+ expect(href).to eq(resource_relations[:"rentals.photos"].href)
52
53
  end
53
54
  end
54
55
 
@@ -66,8 +67,8 @@ describe BookingSync::API::Response do
66
67
 
67
68
  describe "#relations" do
68
69
  it "returns relations from Link header" do
69
- expect(response.relations[:next].href).to eql('/rentals?page=2')
70
- expect(response.relations[:last].href).to eql('/rentals?page=19')
70
+ expect(response.relations[:next].href).to eql("/rentals?page=2")
71
+ expect(response.relations[:last].href).to eql("/rentals?page=19")
71
72
  end
72
73
  end
73
74
 
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://bookingsync.dev/api/v3/living_rooms/6
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.2
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ Status:
28
+ - 204 No Content
29
+ Cache-Control:
30
+ - no-cache
31
+ X-Ratelimit-Limit:
32
+ - '1000'
33
+ X-Ratelimit-Reset:
34
+ - '1480082400'
35
+ X-Ratelimit-Remaining:
36
+ - '990'
37
+ X-Xss-Protection:
38
+ - 1; mode=block
39
+ X-Updated-Since-Request-Synced-At:
40
+ - 2016-11-25 13:48:47 UTC
41
+ X-Request-Id:
42
+ - f797f8a6-3879-4259-bcf5-731ae63d37e6
43
+ P3p:
44
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
45
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
46
+ X-Runtime:
47
+ - '0.024749'
48
+ X-Frame-Options:
49
+ - SAMEORIGIN
50
+ X-Content-Type-Options:
51
+ - nosniff
52
+ Date:
53
+ - Fri, 25 Nov 2016 13:48:47 GMT
54
+ Set-Cookie:
55
+ - ahoy_track=true; path=/
56
+ - ahoy_visit=d8c3a1fb-fb77-4e99-a4c5-b827a223ff91; path=/; expires=Fri, 02 Dec
57
+ 2016 13:48:47 -0000
58
+ - ahoy_visitor=0b3c36f5-5d2e-4ff9-9cf5-07d241f97e2d; path=/; expires=Sun, 25
59
+ Nov 2018 13:48:47 -0000
60
+ X-Powered-By:
61
+ - Phusion Passenger 5.0.27
62
+ Server:
63
+ - nginx/1.8.1 + Phusion Passenger 5.0.27
64
+ body:
65
+ encoding: UTF-8
66
+ string: ''
67
+ http_version:
68
+ recorded_at: Fri, 25 Nov 2016 13:48:47 GMT
69
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://bookingsync.dev/api/v3/rentals/3/living_rooms
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"living_rooms":[{"sofa_beds_count":2}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.2
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Type:
26
+ - application/vnd.api+json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 201 Created
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Ratelimit-Limit:
36
+ - '1000'
37
+ X-Ratelimit-Reset:
38
+ - '1480082400'
39
+ X-Ratelimit-Remaining:
40
+ - '992'
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ X-Updated-Since-Request-Synced-At:
44
+ - 2016-11-25 13:47:29 UTC
45
+ X-Request-Id:
46
+ - c96949fe-f3d9-41f1-b607-0fdb45e7de93
47
+ Link:
48
+ - <http://bookingsync.dev/api/v3/rentals/3/living_rooms?living_rooms%5B%5D%5Bsofa_beds_count%5D=2&page=1>;
49
+ rel="first"
50
+ Location:
51
+ - http://bookingsync.dev/api/v3/living_rooms/9
52
+ X-Per-Page:
53
+ - '100'
54
+ P3p:
55
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
56
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
57
+ Etag:
58
+ - W/"60973d632e07083c8b7274694851f70e"
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Runtime:
62
+ - '0.741512'
63
+ X-Content-Type-Options:
64
+ - nosniff
65
+ Date:
66
+ - Fri, 25 Nov 2016 13:47:29 GMT
67
+ Set-Cookie:
68
+ - ahoy_track=true; path=/
69
+ - ahoy_visit=bf8c2dd6-e0e7-4f3a-af76-e642df82ff39; path=/; expires=Fri, 02 Dec
70
+ 2016 13:47:29 -0000
71
+ - ahoy_visitor=3511daf4-4049-46c6-97ae-8549628ecb7e; path=/; expires=Sun, 25
72
+ Nov 2018 13:47:29 -0000
73
+ X-Powered-By:
74
+ - Phusion Passenger 5.0.27
75
+ Server:
76
+ - nginx/1.8.1 + Phusion Passenger 5.0.27
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"links":{"living_rooms.rental":"http://bookingsync.dev/api/v3/rentals/{living_rooms.rental}"},"living_rooms":[{"links":{"rental":3},"id":9,"bunk_beds_count":0,"double_beds_count":0,"kingsize_beds_count":0,"queensize_beds_count":0,"single_beds_count":0,"sofa_beds_count":2,"created_at":"2016-11-25T13:47:29Z","updated_at":"2016-11-25T13:47:29Z"}],"meta":{}}'
80
+ http_version:
81
+ recorded_at: Fri, 25 Nov 2016 13:47:29 GMT
82
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,75 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://bookingsync.dev/api/v3/living_rooms/6
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"living_rooms":[{"sofa_beds_count":3}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.2
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/vnd.api+json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Ratelimit-Limit:
36
+ - '1000'
37
+ X-Ratelimit-Reset:
38
+ - '1480082400'
39
+ X-Ratelimit-Remaining:
40
+ - '991'
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ X-Updated-Since-Request-Synced-At:
44
+ - 2016-11-25 13:48:38 UTC
45
+ X-Request-Id:
46
+ - 33bea71b-ccb7-413d-9ae8-6ac466841e2e
47
+ P3p:
48
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
49
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
50
+ Etag:
51
+ - W/"1e4710c9ddd181be72e8664ca96af911"
52
+ X-Frame-Options:
53
+ - SAMEORIGIN
54
+ X-Runtime:
55
+ - '0.031236'
56
+ X-Content-Type-Options:
57
+ - nosniff
58
+ Date:
59
+ - Fri, 25 Nov 2016 13:48:38 GMT
60
+ Set-Cookie:
61
+ - ahoy_track=true; path=/
62
+ - ahoy_visit=ed602075-5365-44ea-aed6-a3b3b355530f; path=/; expires=Fri, 02 Dec
63
+ 2016 13:48:38 -0000
64
+ - ahoy_visitor=9e36e958-5ee8-493f-864b-3132e254e94d; path=/; expires=Sun, 25
65
+ Nov 2018 13:48:38 -0000
66
+ X-Powered-By:
67
+ - Phusion Passenger 5.0.27
68
+ Server:
69
+ - nginx/1.8.1 + Phusion Passenger 5.0.27
70
+ body:
71
+ encoding: UTF-8
72
+ string: '{"links":{"living_rooms.rental":"http://bookingsync.dev/api/v3/rentals/{living_rooms.rental}"},"living_rooms":[{"links":{"rental":23869},"id":6,"bunk_beds_count":0,"double_beds_count":0,"kingsize_beds_count":1,"queensize_beds_count":0,"single_beds_count":1,"sofa_beds_count":3,"created_at":"2016-11-24T19:39:43Z","updated_at":"2016-11-25T13:48:38Z"}],"meta":{}}'
73
+ http_version:
74
+ recorded_at: Fri, 25 Nov 2016 13:48:38 GMT
75
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://bookingsync.dev/api/v3/living_rooms/6
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.2
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/vnd.api+json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Total-Pages:
34
+ - '1'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Ratelimit-Limit:
38
+ - '1000'
39
+ X-Ratelimit-Reset:
40
+ - '1480082400'
41
+ X-Ratelimit-Remaining:
42
+ - '993'
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Updated-Since-Request-Synced-At:
46
+ - 2016-11-25 13:45:49 UTC
47
+ X-Request-Id:
48
+ - 0ecf7654-769f-4370-af4c-741c268ee873
49
+ Link:
50
+ - <http://bookingsync.dev/api/v3/living_rooms/6?page=1>; rel="first", <http://bookingsync.dev/api/v3/living_rooms/6?page=1>;
51
+ rel="last"
52
+ X-Per-Page:
53
+ - '100'
54
+ P3p:
55
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
56
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
57
+ Etag:
58
+ - W/"2e7c36d2c8df5cd0245514287b730716"
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Total-Count:
62
+ - '1'
63
+ X-Content-Type-Options:
64
+ - nosniff
65
+ X-Runtime:
66
+ - '0.024403'
67
+ Date:
68
+ - Fri, 25 Nov 2016 13:45:49 GMT
69
+ Set-Cookie:
70
+ - ahoy_track=true; path=/
71
+ - ahoy_visit=3dfbe5be-168f-4d43-8dd0-513ba188e109; path=/; expires=Fri, 02 Dec
72
+ 2016 13:45:49 -0000
73
+ - ahoy_visitor=c645ae15-6776-47b9-9c67-cb1b8140c20d; path=/; expires=Sun, 25
74
+ Nov 2018 13:45:49 -0000
75
+ X-Powered-By:
76
+ - Phusion Passenger 5.0.27
77
+ Server:
78
+ - nginx/1.8.1 + Phusion Passenger 5.0.27
79
+ body:
80
+ encoding: UTF-8
81
+ string: '{"links":{"living_rooms.rental":"http://bookingsync.dev/api/v3/rentals/{living_rooms.rental}"},"living_rooms":[{"links":{"rental":23869},"id":6,"bunk_beds_count":0,"double_beds_count":0,"kingsize_beds_count":1,"queensize_beds_count":0,"single_beds_count":1,"sofa_beds_count":2,"created_at":"2016-11-24T19:39:43Z","updated_at":"2016-11-24T19:40:02Z"}],"meta":{}}'
82
+ http_version:
83
+ recorded_at: Fri, 25 Nov 2016 13:45:49 GMT
84
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://bookingsync.dev/api/v3/living_rooms
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.2
12
+ Accept:
13
+ - application/vnd.api+json
14
+ Content-Type:
15
+ - application/vnd.api+json
16
+ Authorization:
17
+ - Bearer <<ACCESS_TOKEN>>
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/vnd.api+json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 200 OK
33
+ X-Total-Pages:
34
+ - '1'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Ratelimit-Limit:
38
+ - '1000'
39
+ X-Ratelimit-Reset:
40
+ - '1480082400'
41
+ X-Ratelimit-Remaining:
42
+ - '994'
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Updated-Since-Request-Synced-At:
46
+ - 2016-11-25 13:45:46 UTC
47
+ X-Request-Id:
48
+ - 188bf7f4-f21b-433b-9393-532b4edcafc6
49
+ Link:
50
+ - <http://bookingsync.dev/api/v3/living_rooms?page=1>; rel="first", <http://bookingsync.dev/api/v3/living_rooms?page=1>;
51
+ rel="last"
52
+ X-Per-Page:
53
+ - '100'
54
+ P3p:
55
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
56
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
57
+ Etag:
58
+ - W/"077931a97aa0e0c75f9cb9ffb6355e8f"
59
+ X-Frame-Options:
60
+ - SAMEORIGIN
61
+ X-Total-Count:
62
+ - '3'
63
+ X-Content-Type-Options:
64
+ - nosniff
65
+ X-Runtime:
66
+ - '0.101934'
67
+ Date:
68
+ - Fri, 25 Nov 2016 13:45:46 GMT
69
+ Set-Cookie:
70
+ - ahoy_track=true; path=/
71
+ - ahoy_visit=2d46a519-fbd2-4571-935a-c9cb92031b2d; path=/; expires=Fri, 02 Dec
72
+ 2016 13:45:46 -0000
73
+ - ahoy_visitor=b71cf265-52e8-4ae1-a6e8-db82ea753572; path=/; expires=Sun, 25
74
+ Nov 2018 13:45:46 -0000
75
+ X-Powered-By:
76
+ - Phusion Passenger 5.0.27
77
+ Server:
78
+ - nginx/1.8.1 + Phusion Passenger 5.0.27
79
+ body:
80
+ encoding: UTF-8
81
+ string: '{"links":{"living_rooms.rental":"http://bookingsync.dev/api/v3/rentals/{living_rooms.rental}"},"living_rooms":[{"links":{"rental":23869},"id":6,"bunk_beds_count":0,"double_beds_count":0,"kingsize_beds_count":1,"queensize_beds_count":0,"single_beds_count":1,"sofa_beds_count":2,"created_at":"2016-11-24T19:39:43Z","updated_at":"2016-11-24T19:40:02Z"},{"links":{"rental":23875},"id":7,"bunk_beds_count":0,"double_beds_count":1,"kingsize_beds_count":0,"queensize_beds_count":1,"single_beds_count":0,"sofa_beds_count":2,"created_at":"2016-11-24T19:40:32Z","updated_at":"2016-11-24T19:40:43Z"},{"links":{"rental":23863},"id":8,"bunk_beds_count":0,"double_beds_count":0,"kingsize_beds_count":1,"queensize_beds_count":0,"single_beds_count":1,"sofa_beds_count":0,"created_at":"2016-11-25T13:31:09Z","updated_at":"2016-11-25T13:31:09Z"}],"meta":{}}'
82
+ http_version:
83
+ recorded_at: Fri, 25 Nov 2016 13:45:46 GMT
84
+ recorded_with: VCR 2.9.2