def write_nameableartefact(obj):
    """Convert :class:`NameableArtefact <pandasdmx.model.NameableArtefact>`.

    The :attr:`name <pandasdmx.model.NameableArtefact.name>` attribute of *obj*
    is returned.
    """
    return str(obj.name)