def get_rets_response(rets)
      code, text = nil, nil
      rets.attributes.each do |attr|
        key = attr.first.downcase
        if key == "replycode"
          code = attr.last.value
        elsif key == "replytext"
          text = attr.last.value
        end
      end
  #    puts "replycode: #{code}"
      return code, text
    end
def get_rets_response(rets)
      code, text = nil, nil
      rets.attributes.each do |attr|
        key = attr.first.downcase
        if key == "replycode"
          code = attr.last.value
        elsif key == "replytext"
          text = attr.last.value
        end
      end
  #    puts "replycode: #{code}"
      return code, text
    end
Finds the ReplyText and ReplyCode attributes in the response

 @param [Nokogiri::XML::NodeSet] rets <RETS> attributes found

 @return [String] RETS ReplyCode
 @return [String] RETS ReplyText