From 7fa1bb386dd9e4219baf3d91a6ddecee83fbc730 Mon Sep 17 00:00:00 2001 From: William Johnston Date: Tue, 25 Jul 2017 12:08:42 -0500 Subject: [PATCH] Clean up accessor slightly --- lib/marketingcloudsdk/soap.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/marketingcloudsdk/soap.rb b/lib/marketingcloudsdk/soap.rb index cecc0b7..50690a8 100644 --- a/lib/marketingcloudsdk/soap.rb +++ b/lib/marketingcloudsdk/soap.rb @@ -114,7 +114,10 @@ def unpack_rslts raw end module Soap - attr_accessor :wsdl, :debug#, :internal_token + attr_accessor :debug#, :internal_token + attr_writer :wsdl + + DEFAULT_WSDL = 'https://webservice.exacttarget.com/etframework.wsdl'.freeze include MarketingCloudSDK::Targeting @@ -131,7 +134,7 @@ def debug end def wsdl - @wsdl ||= 'https://webservice.exacttarget.com/etframework.wsdl' + @wsdl || DEFAULT_WSDL end def soap_client