Class: AfipPublic::AfipPublicService
- Inherits:
-
Object
- Object
- AfipPublic::AfipPublicService
- Includes:
- HTTParty
- Defined in:
- lib/afip_public.rb
Direct Known Subclasses
Instance Method Summary collapse
- #handle_timeouts ⇒ Object
-
#initialize ⇒ AfipPublicService
constructor
A new instance of AfipPublicService.
Constructor Details
#initialize ⇒ AfipPublicService
Returns a new instance of AfipPublicService.
15 16 17 |
# File 'lib/afip_public.rb', line 15 def initialize() @options = { } end |
Instance Method Details
#handle_timeouts ⇒ Object
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 |