cumulus_ruby 0.1.1 → 0.2.0

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: ec14c83f6625ffedefc7c52ee7a9704a581ef0ee
4
- data.tar.gz: fd8172525eba1b2fb38bb4ac50d4d2ec224cb990
3
+ metadata.gz: 4434b0828e8cf265468e60a22cd0dbce6d2ad033
4
+ data.tar.gz: 3afcc995fc6c466b23c27fdc172b765e78ba4e96
5
5
  SHA512:
6
- metadata.gz: 402bfad3ec218186de092c88f5d23860cffedddd056b89e79417fcbfcf6f116581373ae5a2183c1eb9f6d173d2b557477e7d265a3abb3107f5352cd2f17ba5b5
7
- data.tar.gz: a13a676e5bfcf3bc2a98c3a6261de1acb3a52330e1ec99c3690ba5682f676cad8f3678bf6db23f033d13546cbf8b424f54553d2a36405697b4e17034557c5ff0
6
+ metadata.gz: d5f3c1dfc06bb6ad5f264552f27ac5b790008e64e512e0fdedcf8833fe251ea9707d66aa5d6472e410da54fb56cf3674c58910c8639441187214c9f2b8f17b15
7
+ data.tar.gz: 5e766f265cd91deaf7d34406e0c1d99771c003d948fb35bdb6b9e1fab319dddacb7b22d29e3aaa342ae9f6d2ed2d63de6fac1d11782994a32252e4551e1d4366
data/README.md CHANGED
@@ -68,7 +68,7 @@ pmx = Cumulus::Pmx.new(client)
68
68
  Look for companies
69
69
 
70
70
  ```ruby
71
- pmx.companies({ 'numeroEmpleado' => '123' })
71
+ pmx.companies
72
72
  ```
73
73
 
74
74
  Look for entitlement
@@ -78,11 +78,11 @@ pmx.entitled({ 'numeroEmpresa' => '123',
78
78
  'numeroEmpleado' => '123', 'codigoDerechoHabiente' => '0' })
79
79
  ```
80
80
 
81
- Look for a patient
81
+ Look for employee
82
82
 
83
83
  ```ruby
84
- pmx.patient({ 'numeroEmpresa' => '123',
85
- 'numeroEmpleado' => '123', 'codigoDerechoHabiente' => '0' })
84
+ pmx.employee({ 'numeroEmpresa' => '123',
85
+ 'numeroEmpleado' => '123' })
86
86
  ```
87
87
 
88
88
  ## License
@@ -4,8 +4,12 @@ module Cumulus
4
4
  @client = client
5
5
  end
6
6
 
7
- def companies(params)
8
- client.request(:post, '/pemex/empresa', params)
7
+ def companies
8
+ client.request(:get, '/pemex/empresas')
9
+ end
10
+
11
+ def employees(params)
12
+ client.request(:post, '/pemex/empleados', params)
9
13
  end
10
14
 
11
15
  def entitled(params)
@@ -1,3 +1,3 @@
1
1
  module Cumulus
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
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.1.1
4
+ version: 0.2.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-02 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler