'Returns the Repository with id ``number``.
:param int number: id of the repository
:returns: :class:`Repository <github3.repos.Repository>`'

def repository_with_id(self, number):

    number = int(number)
    json = None
    if (number > 0):
        url = self._build_url(u'repositories', str(number))
        json = self._json(self._get(url), 200)
    return self._instance_or_null(Repository, json)
