lib/intacctrb/employee.rb in intacctrb-0.7.1 vs lib/intacctrb/employee.rb in intacctrb-0.7.2

- old
+ new

@@ -7,9 +7,18 @@ employee_xml(xml) } } end + if successful? + data = OpenStruct.new({ + id: response.at("//EMPLOYEE/RECORDNO").try(:content), + name: response.at("//EMPLOYEE/PERSONALINFO/CONTACTNAME").try(:content), + contact_id: response.at("//EMPLOYEE/CONTACTKEY").try(:content), + employee_id: response.at("//EMPLOYEE/EMPLOYEEID").try(:content) + }) + end + return_result(response) end def get(options = {}) # return false unless object.intacct_id.present?