pseng_ekg_client 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pseng_ekg_client/version.rb +1 -1
- data/lib/pseng_ekg_client.rb +2 -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: d4da722eb367830e5b4363c307e7e9e7aad2b614
|
4
|
+
data.tar.gz: f2cfab47c370a3635a3e96cd4759d6026f82aad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06456ca47363176ad7facbcaacc11a4b70b0864fe62bdaf9e234a683180c7898aaf305abb22f7d04dcd1dd969c13ffb0299128e42bc62871202c79fb71c0cd8
|
7
|
+
data.tar.gz: 13af37e44a32510fc53322723388ff487ee15cb8fc5188f1c154486921b77199b1787701b013081156a211f4940b619d98f635b9f09c37041e7bf52df001f8b4
|
data/lib/pseng_ekg_client.rb
CHANGED
@@ -20,7 +20,7 @@ module PsengEkgClient
|
|
20
20
|
headers: { 'Content-Type' => 'application/json' }
|
21
21
|
}
|
22
22
|
|
23
|
-
case action
|
23
|
+
response = case action
|
24
24
|
when 'index'
|
25
25
|
self.class.get("/#{record_type}s.json", options)
|
26
26
|
when 'show'
|
@@ -32,6 +32,7 @@ module PsengEkgClient
|
|
32
32
|
when 'destroy'
|
33
33
|
self.class.delete("/#{record_type}s/#{payload.id}.json", options)
|
34
34
|
end
|
35
|
+
JSON.parse(response.body)
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|