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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4da722eb367830e5b4363c307e7e9e7aad2b614
4
- data.tar.gz: f2cfab47c370a3635a3e96cd4759d6026f82aad1
3
+ metadata.gz: 0ec0de50fdb8a1675ad58feaee76fe2827909153
4
+ data.tar.gz: 4ff7c06eb749397065b8bfa05c78b02eea785f50
5
5
  SHA512:
6
- metadata.gz: c06456ca47363176ad7facbcaacc11a4b70b0864fe62bdaf9e234a683180c7898aaf305abb22f7d04dcd1dd969c13ffb0299128e42bc62871202c79fb71c0cd8
7
- data.tar.gz: 13af37e44a32510fc53322723388ff487ee15cb8fc5188f1c154486921b77199b1787701b013081156a211f4940b619d98f635b9f09c37041e7bf52df001f8b4
6
+ metadata.gz: 88bacdc7118cf9a815a8cab713f782c40655396de7a4b56e0cd0ab201f668fc82808c9ea8116262ac759a1266378f0d13eea0d423058ef2343b7e365dc4bfe56
7
+ data.tar.gz: 15c3c65e688b7fabc306a6f34690982a98fbccc29b2796f2f0b1ebff362ee4d90c4804df04c06fd9049caaaeb986d4fff5793ca496dd14f31180a8af2a250e7f
@@ -1,3 +1,3 @@
1
1
  module PsengEkgClient
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -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/#{payload.id}.json", options)
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/#{payload.id}.json", options)
31
+ self.class.patch("/#{record_type}s/#{id}.json", options)
32
32
  when 'destroy'
33
- self.class.delete("/#{record_type}s/#{payload.id}.json", options)
33
+ self.class.delete("/#{record_type}s/#{id}.json", options)
34
34
  end
35
- JSON.parse(response.body)
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.7
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-18 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler