pseng_ekg_client 0.1.7 → 0.1.8
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 +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ec0de50fdb8a1675ad58feaee76fe2827909153
|
4
|
+
data.tar.gz: 4ff7c06eb749397065b8bfa05c78b02eea785f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88bacdc7118cf9a815a8cab713f782c40655396de7a4b56e0cd0ab201f668fc82808c9ea8116262ac759a1266378f0d13eea0d423058ef2343b7e365dc4bfe56
|
7
|
+
data.tar.gz: 15c3c65e688b7fabc306a6f34690982a98fbccc29b2796f2f0b1ebff362ee4d90c4804df04c06fd9049caaaeb986d4fff5793ca496dd14f31180a8af2a250e7f
|
data/lib/pseng_ekg_client.rb
CHANGED
@@ -11,7 +11,7 @@ module PsengEkgClient
|
|
11
11
|
self.class.base_uri base_uri
|
12
12
|
end
|
13
13
|
|
14
|
-
def send_message(record_type, action, payload)
|
14
|
+
def send_message(record_type, action, payload, id = nil)
|
15
15
|
raise 'Invalid Action' unless VALID_ACTIONS.include?(action)
|
16
16
|
raise 'Invalid Record Type' unless VALID_RECORD_TYPES.include?(record_type)
|
17
17
|
|
@@ -24,15 +24,15 @@ module PsengEkgClient
|
|
24
24
|
when 'index'
|
25
25
|
self.class.get("/#{record_type}s.json", options)
|
26
26
|
when 'show'
|
27
|
-
self.class.get("/#{record_type}s/#{
|
27
|
+
self.class.get("/#{record_type}s/#{id}.json", options)
|
28
28
|
when 'create'
|
29
29
|
self.class.post("/#{record_type}s.json", options)
|
30
30
|
when 'update'
|
31
|
-
self.class.patch("/#{record_type}s/#{
|
31
|
+
self.class.patch("/#{record_type}s/#{id}.json", options)
|
32
32
|
when 'destroy'
|
33
|
-
self.class.delete("/#{record_type}s/#{
|
33
|
+
self.class.delete("/#{record_type}s/#{id}.json", options)
|
34
34
|
end
|
35
|
-
|
35
|
+
response
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pseng_ekg_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Tanner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|