booking-ruby 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booking_api/images/response_list.rb +5 -3
- data/lib/booking_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 867aa4b580e5f826678be6de48a9ddd1c62141ca
|
4
|
+
data.tar.gz: ebe78f6abe2f83f794d3ae413335465d0b73e7f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25783f659992561a87528331e029745f874bbde29488defde35589a7b8c51c31563fa8c5b60606a84b03dae76f90d7b574962eb163a46b16e1c309e25f1c7f2b
|
7
|
+
data.tar.gz: 68822a113b95cd41d45313896b81d07f4d8a7c62ae4f4bff22ffef37fd84532a4b32a555f6d8be12d47e616434d5832a230ec182fdc47a79090a5928dadab3a1
|
@@ -14,9 +14,11 @@ module BookingApi
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def parsed_entries_from_response
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
if response.body && (response.body.is_a?(Hash) || response.body.is_a?(Array))
|
18
|
+
response.body
|
19
|
+
else
|
20
|
+
raise JSON::ParserError
|
21
|
+
end
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
data/lib/booking_api/version.rb
CHANGED