Class: AfipPublic::Padron

Inherits:
AfipPublicService show all
Defined in:
lib/afip_public.rb

Instance Method Summary collapse

Methods inherited from AfipPublicService

#handle_timeouts, #initialize

Constructor Details

This class inherits a constructor from AfipPublic::AfipPublicService

Instance Method Details

#base_pathObject



32
33
34
# File 'lib/afip_public.rb', line 32

def base_path
  "/sr-padron/"
end

#get_constancia(cuit) ⇒ Object



48
49
50
51
52
# File 'lib/afip_public.rb', line 48

def get_constancia(cuit)
  handle_timeouts do
   self.class.get("#{ base_path }v1/constancia/#{ cuit }", @options)
  end
end

#get_persona(cuit) ⇒ Object



36
37
38
39
40
# File 'lib/afip_public.rb', line 36

def get_persona(cuit)
  handle_timeouts do
   self.class.get("#{ base_path }v2/persona/#{ cuit }", @options)
  end
end

#get_personas(dni) ⇒ Object



42
43
44
45
46
# File 'lib/afip_public.rb', line 42

def get_personas(dni)
  handle_timeouts do
   self.class.get("#{ base_path }v2/personas/#{ dni }", @options)
  end
end