Class GHGist

    • Constructor Detail

      • GHGist

        public GHGist()
    • Method Detail

      • getOwner

        public GHUser getOwner()
                        throws IOException
        Gets owner.
        Returns:
        User that owns this Gist.
        Throws:
        IOException - the io exception
      • getForksUrl

        public String getForksUrl()
        Gets forks url.
        Returns:
        the forks url
      • getCommitsUrl

        public String getCommitsUrl()
        Gets commits url.
        Returns:
        the commits url
      • getGitPullUrl

        public String getGitPullUrl()
        Gets git pull url.
        Returns:
        URL like https://gist.github.com/gists/12345.git
      • getGitPushUrl

        public String getGitPushUrl()
        Gets git push url.
        Returns:
        the git push url
      • getHtmlUrl

        public URL getHtmlUrl()
        Description copied from class: GHObject
        Gets html url.
        Specified by:
        getHtmlUrl in class GHObject
        Returns:
        URL of this object for humans, which renders some HTML.
      • isPublic

        public boolean isPublic()
        Is public boolean.
        Returns:
        the boolean
      • getDescription

        public String getDescription()
        Gets description.
        Returns:
        the description
      • getCommentCount

        public int getCommentCount()
        Gets comment count.
        Returns:
        the comment count
      • getCommentsUrl

        public String getCommentsUrl()
        Gets comments url.
        Returns:
        API URL of listing comments.
      • getFile

        public GHGistFile getFile​(String name)
        Gets file.
        Parameters:
        name - the name
        Returns:
        the file
      • isStarred

        public boolean isStarred()
                          throws IOException
        Is starred boolean.
        Returns:
        the boolean
        Throws:
        IOException - the io exception
      • listForks

        public PagedIterable<GHGist> listForks()
        List forks paged iterable.
        Returns:
        the paged iterable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object