lib/gotransverse-tract-api.rb in gotransverse-tract-api-0.2.3 vs lib/gotransverse-tract-api.rb in gotransverse-tract-api-0.2.4
- old
+ new
@@ -12,10 +12,11 @@
require "gotransverse-tract-api/billing_account/payment"
require "gotransverse-tract-api/billing_account/reason"
require "gotransverse-tract-api/billing_account/recurring_payment"
require "gotransverse-tract-api/billing_account/refund"
require "gotransverse-tract-api/billing_account/scheduled_charge"
+require "gotransverse-tract-api/billing_account/standard_invoice_adjustment_application"
require "gotransverse-tract-api/general/system_setting"
require "gotransverse-tract-api/general_ledger/general_ledger"
require "gotransverse-tract-api/general_ledger/gl_account"
@@ -210,11 +211,11 @@
xml_response = Nokogiri::XML(response.body.to_s)
klass = klass.to_s.split("::").last
hsh = Hash.from_xml(xml_response.to_s)
-
hsh = hsh[klass.pluralize.camelize(:lower)][klass.camelize(:lower)] rescue Hash.from_xml(xml_response.to_s)[klass.camelize(:lower)]
+
return hsh
rescue
{}
end