From c000d46ced687a4375ddf0f86d8a5302e2836bce Mon Sep 17 00:00:00 2001 From: Isaac Lewis Date: Tue, 23 Oct 2018 15:32:24 -0700 Subject: [PATCH] add raw xml output --- lib/syspro/business_objects/combrw.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/syspro/business_objects/combrw.rb b/lib/syspro/business_objects/combrw.rb index 44a0be0..0ebd267 100644 --- a/lib/syspro/business_objects/combrw.rb +++ b/lib/syspro/business_objects/combrw.rb @@ -12,11 +12,15 @@ module Syspro attr_accessor :browse_name, :start_condition, :return_rows, :filters, :table_name, :title, :columns - def call(user_id) + def call(user_id, raw) xml_in = template.result(binding) params = { 'UserId' => user_id, 'XmlIn' => xml_in } resp = ComBrw.browse(params) - parse_response(resp) + unless raw + parse_response(resp) + else + resp + end end def template -- libgit2 0.21.4