Add reference to resource

        :param ref: reference to add
        :type ref: Resource

        :rtype: Resource

def add_ref(self, ref, attr=None):
        """Add reference to resource

        :param ref: reference to add
        :type ref: Resource

        :rtype: Resource
        """
        self.session.add_ref(self, ref, attr)
        return self.fetch()