cumulus_ruby 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/cumulus/patient.rb +4 -4
- data/lib/cumulus/version.rb +1 -1
- 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: 13c5a898a0f7b4a09c2a77c71ef03adb4e3000a9
|
4
|
+
data.tar.gz: 982957361c3db3e038b4bd655c3391d4ee522a50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7650f8a144aae25c68df791b07c4df738aea79cc1519e501668ee20be274acbfd77a50d56070138f93c24675be8f91252075003e4822f42837b491cbd7a454bc
|
7
|
+
data.tar.gz: 8e05087426d965f150177f77a84351ef9f4c5dd49a4f0379b55aee0b86391402df823bc41fb0198ea46bf4bed5000e97d1b73c2b8a3d4ee731965a34b658c48e
|
data/README.md
CHANGED
data/lib/cumulus/patient.rb
CHANGED
@@ -20,6 +20,10 @@ module Cumulus
|
|
20
20
|
|
21
21
|
PARAMETERS.keys.each { |k| attr_accessor k }
|
22
22
|
|
23
|
+
def self.fetch(client, curp)
|
24
|
+
client.request(:get, "/pacientes/#{curp}")
|
25
|
+
end
|
26
|
+
|
23
27
|
def initialize(client, parameters={})
|
24
28
|
@client = client
|
25
29
|
parameters_handler.set(parameters)
|
@@ -35,10 +39,6 @@ module Cumulus
|
|
35
39
|
client.request(:put, "/pacientes/#{curp}", parameters_handler.for_request)
|
36
40
|
end
|
37
41
|
|
38
|
-
def fetch(curp)
|
39
|
-
client.request(:get, "/pacientes/#{curp}")
|
40
|
-
end
|
41
|
-
|
42
42
|
def search(curp, query)
|
43
43
|
client.request(:post, "/pacientes/#{curp}/busqueda", { query: query })
|
44
44
|
end
|
data/lib/cumulus/version.rb
CHANGED
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.
|
4
|
+
version: 0.4.0
|
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-
|
11
|
+
date: 2016-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|