class Cumulus::Pmx

Public Class Methods

new(client) click to toggle source
# File lib/cumulus/pmx.rb, line 3
def initialize(client)
  @client = client
end

Public Instance Methods

fetch_companies() click to toggle source
# File lib/cumulus/pmx.rb, line 7
def fetch_companies
  client.request(:get, '/pemex/empresas')
end
fetch_employees(params) click to toggle source
# File lib/cumulus/pmx.rb, line 11
def fetch_employees(params)
  client.request(:post, '/pemex/empleados', params)
end
fetch_entitled(params) click to toggle source
# File lib/cumulus/pmx.rb, line 15
def fetch_entitled(params)
  client.request(:post, '/pemex/derecho_habiente', params)
end
fetch_patient(params) click to toggle source
# File lib/cumulus/pmx.rb, line 19
def fetch_patient(params)
  client.request(:post, '/pemex/paciente', params)
end
fetch_patient_by_curp(curp) click to toggle source
# File lib/cumulus/pmx.rb, line 23
def fetch_patient_by_curp(curp)
  client.request(:get, "/pacientes/#{curp}/pemex")
end

Private Instance Methods

client() click to toggle source
# File lib/cumulus/pmx.rb, line 33
def client
  @client
end