Sha256: b53a53780549da4f1f1b4c0174fdbf4c20cae84816551ee6aad7ed63636bf9c9
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
module Afipws class WSBase extend Forwardable attr_reader :wsaa, :client, :env def_delegators :wsaa, :cuit, :auth def initialize options = {} @env = (options[:env] || :test).to_sym end def request action, body = nil @client.request(action, body).to_hash[:"#{action}_response"] rescue Savon::SOAPFault => f raise WSError, f.message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
afipws-1.1.0 | lib/afipws/ws_base.rb |