lib/intacctrb/base.rb in intacctrb-0.9.1 vs lib/intacctrb/base.rb in intacctrb-0.9.2
- old
+ new
@@ -107,10 +107,10 @@
object: response, data: data})
else
data = OpenStruct.new({result: false, intacct_id: object.intacct_id})
data.errors = []
response.xpath("//result/errormessage/error").each do |error|
- errors << {
+ data.errors << {
code: error.at("//errorno").content,
title: error.at("//description").content,
description: error.at("//description2").content
}
end