Small bugfix plus strange finding

There was a line intiializing the rets_data var to nil which caused an error. it has a slight oddity which is workable for now at thats that only the first iteration can you see the rets_data, 2nd, 3rd ... iterations the rets_data var is being set to nil

More verbose output with inspect you can see the variable mysteriously being set to nil on subsequent iterations

#<RETS::Base::Core:0x007fe531eb7da0 @http=#<RETS::HTTP:0x007fe531ed8de8 @headers={"User-Agent"=>"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=2, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>>, @urls={:login=>#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>, :logout=>#<URI::HTTP:0x007fe531eb33e0 URL:http://www.dis.com:6103/rets/logout>, :search=>#<URI::HTTP:0x007fe531eb2aa8 URL:http://www.dis.com:6103/rets/search>, :getmetadata=>#<URI::HTTP:0x007fe531eb2468 URL:http://www.dis.com:6103/rets/getMetadata>, :getobject=>#<URI::HTTP:0x007fe531eb1e28 URL:http://www.dis.com:6103/rets/getObject>}, @rets_data={:code=>"0", :text=>"Operation Successful", :count=>5, :delimiter=>"\t"}, @request_hash=nil, @request_size=nil>
Fetching Photos
#<RETS::Base::Core:0x007fe531eb7da0 @http=#<RETS::HTTP:0x007fe531ed8de8 @headers={"User-Agent"=>"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=3, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>>, @urls={:login=>#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>, :logout=>#<URI::HTTP:0x007fe531eb33e0 URL:http://www.dis.com:6103/rets/logout>, :search=>#<URI::HTTP:0x007fe531eb2aa8 URL:http://www.dis.com:6103/rets/search>, :getmetadata=>#<URI::HTTP:0x007fe531eb2468 URL:http://www.dis.com:6103/rets/getMetadata>, :getobject=>#<URI::HTTP:0x007fe531eb1e28 URL:http://www.dis.com:6103/rets/getObject>}, @rets_data=nil, @request_hash="a0659c632365f64f2ee3d163367157b92e570924", @request_size=9149>
Fetching Photos
#<RETS::Base::Core:0x007fe531eb7da0 @http=#<RETS::HTTP:0x007fe531ed8de8 @headers={"User-Agent"=>"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=4, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>>, @urls={:login=>#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>, :logout=>#<URI::HTTP:0x007fe531eb33e0 URL:http://www.dis.com:6103/rets/logout>, :search=>#<URI::HTTP:0x007fe531eb2aa8 URL:http://www.dis.com:6103/rets/search>, :getmetadata=>#<URI::HTTP:0x007fe531eb2468 URL:http://www.dis.com:6103/rets/getMetadata>, :getobject=>#<URI::HTTP:0x007fe531eb1e28 URL:http://www.dis.com:6103/rets/getObject>}, @rets_data=nil, @request_hash="309846ba52ad074e33ba995b9662579c8eef0695", @request_size=3700>
Fetching Photos
#<RETS::Base::Core:0x007fe531eb7da0 @http=#<RETS::HTTP:0x007fe531ed8de8 @headers={"User-Agent"=>"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=5, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>>, @urls={:login=>#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>, :logout=>#<URI::HTTP:0x007fe531eb33e0 URL:http://www.dis.com:6103/rets/logout>, :search=>#<URI::HTTP:0x007fe531eb2aa8 URL:http://www.dis.com:6103/rets/search>, :getmetadata=>#<URI::HTTP:0x007fe531eb2468 URL:http://www.dis.com:6103/rets/getMetadata>, :getobject=>#<URI::HTTP:0x007fe531eb1e28 URL:http://www.dis.com:6103/rets/getObject>}, @rets_data=nil, @request_hash="a0659c632365f64f2ee3d163367157b92e570924", @request_size=9149>
Fetching Photos
#<RETS::Base::Core:0x007fe531eb7da0 @http=#<RETS::HTTP:0x007fe531ed8de8 @headers={"User-Agent"=>"Ruby RETS/v2.0.4", "Cookie"=>"JSESSIONID=98DE75E8A10DC5E6EC103987E27989A6", "RETS-Version"=>"RETS/1.7"}, @request_count=6, @config={:http=>{}, :url=>"http://www.dis.com:6103/rets/login", :username=>"Joe", :password=>"Schmoe"}, @cookie_list={"JSESSIONID"=>"98DE75E8A10DC5E6EC103987E27989A6"}, @rets_data={:version=>"RETS/1.7"}, @retried_request=nil, @digest={"realm"=>"RETS Server", "qop"=>"auth", "nonce"=>"5e0b66ae5f936f4ac54bac28301faa98", "opaque"=>"252e9b4fd3c8aca68d2ff5ccd87283d6"}, @digest_type=["auth"], @auth_mode=:digest, @login_uri=#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>>, @urls={:login=>#<URI::HTTP:0x007fe531eb5208 URL:http://www.dis.com:6103/rets/login>, :logout=>#<URI::HTTP:0x007fe531eb33e0 URL:http://www.dis.com:6103/rets/logout>, :search=>#<URI::HTTP:0x007fe531eb2aa8 URL:http://www.dis.com:6103/rets/search>, :getmetadata=>#<URI::HTTP:0x007fe531eb2468 URL:http://www.dis.com:6103/rets/getMetadata>, :getobject=>#<URI::HTTP:0x007fe531eb1e28 URL:http://www.dis.com:6103/rets/getObject>}, @rets_data=nil, @request_hash="1d870bbdd958b11d89f37970b7225613d880fe61", @request_size=3705>
Fetching Photos