cumulus_ruby 0.3.0 → 0.3.1

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: d9442c48e0458e67412ed42a51ece52e13a3c38e
4
- data.tar.gz: 5a7cedb4a757fc6d54a37e9924d9cb2636dd11d1
3
+ metadata.gz: 6e76acba60da1f86bc2213c5dc59af3167da29c4
4
+ data.tar.gz: fcbb6cd5178ad9ad4db083c42eca8ef3a52e655d
5
5
  SHA512:
6
- metadata.gz: bd07332f42f3518e3ce0188ec8534b494e0d6b0576668805adf43ee95e360dedc56f09a39b223e2008be559e61d0f4fb2baf67072841585ab0afbc53e67fa010
7
- data.tar.gz: 01f0ca06e81ac20619778ab1e19001c2048ac1c068c1b3faf777b134313894433403479e36838a69a6f4d76e8e94e78c926cef3cf2b1c09ceb88823b1ad1e30f
6
+ metadata.gz: b748ffe4d80664093ec24206313810705d385d73382b509370a5850df0d300848267805b2b18595ba60d06bf49932e71a8d34971a292f442734410ead0730c56
7
+ data.tar.gz: 7e3939856ae16d1618774929e1c00689b189818ca395336e53e47e3ada2693c5c9f7e888d794a656ec660c6aaeb29040e02405b991e16947b3341ca21827baef
data/README.md CHANGED
@@ -100,6 +100,12 @@ pmx.fetch_patient({
100
100
  })
101
101
  ```
102
102
 
103
+ Fetch patient by CURP
104
+
105
+ ```ruby
106
+ pmx.fetch_patient_by_curp('SIFU123123')
107
+ ```
108
+
103
109
  Link patient to Pemex
104
110
 
105
111
  ```ruby
@@ -20,6 +20,10 @@ module Cumulus
20
20
  client.request(:post, '/pemex/paciente', params)
21
21
  end
22
22
 
23
+ def fetch_patient_by_curp(curp)
24
+ client.request(:get, "/pacientes/#{curp}/pemex")
25
+ end
26
+
23
27
  def link_patient(curp, params)
24
28
  client.request(:post, "/pacientes/#{curp}/pemex", params)
25
29
  end
@@ -1,3 +1,3 @@
1
1
  module Cumulus
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cumulus_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amed Rodriguez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler