lib/vacuum/response.rb in vacuum-2.0.2 vs lib/vacuum/response.rb in vacuum-2.1.0
- old
+ new
@@ -1,7 +1,8 @@
+# frozen_string_literal: true
+
require 'delegate'
-require 'dig_rb'
require 'forwardable'
require 'multi_xml'
module Vacuum
# A wrapper around the Amazon Product Advertising API response.
@@ -27,9 +28,9 @@
def to_h
MultiXml.parse(body)
end
def body
- __getobj__.body.force_encoding('UTF-8')
+ (+__getobj__.body).force_encoding(Encoding::UTF_8)
end
end
end