Sha256: 6be7fff1260ea916a07c8b238e41bee304eb334b7e49b6f82b376cf3d9213bc1
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
module Afipws class Client def initialize savon_options @savon = Savon.client savon_options.reverse_merge(soap_version: 2, ssl_version: :TLSv1_2) end def request action, body = nil @savon.call action, message: body rescue Savon::SOAPFault, Savon::HTTPError => e raise ServerError, e rescue HTTPClient::ConnectTimeoutError => e raise NetworkError.new(e, retriable: true) rescue HTTPClient::TimeoutError => e raise NetworkError, e end def operations @savon.operations end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
afipws-2.3.0 | lib/afipws/client.rb |
afipws-2.2.0 | lib/afipws/client.rb |