Class: Cumulus::Pmx
- Inherits:
-
Object
- Object
- Cumulus::Pmx
- Defined in:
- lib/cumulus/pmx.rb
Instance Method Summary collapse
- #companies ⇒ Object
- #employees(params) ⇒ Object
- #entitled(params) ⇒ Object
-
#initialize(client) ⇒ Pmx
constructor
A new instance of Pmx.
- #patient(params) ⇒ Object
Constructor Details
#initialize(client) ⇒ Pmx
Returns a new instance of Pmx.
3 4 5 |
# File 'lib/cumulus/pmx.rb', line 3 def initialize(client) @client = client end |
Instance Method Details
#companies ⇒ Object
7 8 9 |
# File 'lib/cumulus/pmx.rb', line 7 def companies client.request(:get, '/pemex/empresas') end |
#employees(params) ⇒ Object
11 12 13 |
# File 'lib/cumulus/pmx.rb', line 11 def employees(params) client.request(:post, '/pemex/empleados', params) end |
#entitled(params) ⇒ Object
15 16 17 |
# File 'lib/cumulus/pmx.rb', line 15 def entitled(params) client.request(:post, '/pemex/derecho_habiente', params) end |
#patient(params) ⇒ Object
19 20 21 |
# File 'lib/cumulus/pmx.rb', line 19 def patient(params) client.request(:post, '/pemex/paciente', params) end |