qismo 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/qismo/api.rb +5 -1
- data/lib/qismo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 303405e0a510d866ccee020b05461f78dc2495dc1d79c00f9aa7c5cc5f05cac6
|
4
|
+
data.tar.gz: bcc7bc0d00e334ffb620190589421aedee83b89dbdeed9ac151f207152bde65f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b8ff7453b441a91a12c02d34447ba41a8f6c9fe0b2d17037707d92691ff3174e76e7251b74bcde9f626ef8cb6546176792fbc4afc2157bd898e15c1c373b7d0
|
7
|
+
data.tar.gz: a764e416f07d2be5023cd3aaf363940548cd4004634650dfb62111eff4bf434327c47200611d32f5c9e08ab0cf0c44fc13de4679217e7a09ccb2becfce7c0e7e
|
data/Gemfile.lock
CHANGED
data/lib/qismo/api.rb
CHANGED
@@ -15,7 +15,11 @@ module Qismo
|
|
15
15
|
|
16
16
|
def room(room_id)
|
17
17
|
body = get("/api/v2/customer_rooms/#{room_id}")
|
18
|
-
body.data.customer_room
|
18
|
+
if body.data.customer_room.nil?
|
19
|
+
raise Qismo::NotFoundError.new("Room not found", status_code: 404, response_body: body.to_json)
|
20
|
+
end
|
21
|
+
|
22
|
+
body
|
19
23
|
end
|
20
24
|
|
21
25
|
def room_additional_info(room_id)
|
data/lib/qismo/version.rb
CHANGED