lib/atol/request/get_document_state.rb in atol-0.1.2 vs lib/atol/request/get_document_state.rb in atol-0.2

- old
+ new

@@ -13,10 +13,13 @@ @url = "#{Atol::URL}/#{@config.group_code}/report/#{uuid}?tokenid=#{token}" end def call uri = URI(url) - Net::HTTP.get_response(uri) + + http = Net::HTTP.new(uri.host, uri.port) + http.use_ssl = true + http.get(uri.request_uri) end private attr_reader :url