A right arising out of an obligation is the property of the person to whom it is due, and may be transferred as such.
(Enacted 1872.)