In case an attachment be levied on rights, credits, and choses in action, the officer shall take into his possession the books of accounts and other evidences of debt belonging to the defendant, and if the plaintiff so direct, he shall summon all persons appearing to be indebted to the defendant, or to have effects of his in their hands, as garnishees, in the manner prescribed by law.