Expose a #url method for objects