lib/atol/request/post_document.rb in atol-0.5.0 vs lib/atol/request/post_document.rb in atol-0.5.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'atol'
require 'atol/errors'
require 'atol/request/post_document/item/body'
require 'atol/request/post_document/sell/body'
@@ -33,10 +35,10 @@
@req_logger.call(req) if @req_logger.respond_to?(:call)
res = http_client.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(req)
end
-
+
@res_logger.call(res) if @res_logger.respond_to?(:call)
res
end
end