Yes, udevadm info has to be called with a path. AFAIS ruby uses BlkDevice::find_by_any_name() and that function is documented to take a path as well. The function could of course be extended to also work with UUID= (and LABEL=).