Ruby client para los servicios web de la AFIP
Ruby client para los web services de la AFIP.
Primero hay que crear la clave privada y obtener el certificado correspondiente según los pasos indicados aquí.
Luego hay que instalar la librería:
gem install afipws
Y por último usamos el web service de esta forma:
require 'afipws'
ws = Afipws::WSFE.new env: :development, cuit: '...', key: File.read('test.key'), cert: File.read('test.crt')
puts ws.cotizacion 'DOL'
Ver specs para más ejemplos.
git checkout -b my-new-feature
)guard
)git commit -am 'Add some feature'
)git push origin my-new-feature
)