Class: AfipPublic::AfipPublicService

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/afip_public.rb

Direct Known Subclasses

Padron, Parametros, Vencimiento

Instance Method Summary collapse

Constructor Details

#initializeAfipPublicService

Returns a new instance of AfipPublicService.



15
16
17
# File 'lib/afip_public.rb', line 15

def initialize()
  @options = { }
end

Instance Method Details

#handle_timeoutsObject



19
20
21
22
23
24
25
# File 'lib/afip_public.rb', line 19

def handle_timeouts
  begin
    yield
  rescue Net::OpenTimeout, Net::ReadTimeout
    {}
  end
end