org.kohsuke.github
Class GHGistBuilder

java.lang.Object
  extended by org.kohsuke.github.GHGistBuilder

public class GHGistBuilder
extends Object

Builder pattern for creating a new Gist.

Author:
Kohsuke Kawaguchi
See Also:
GitHub.createGist()

Constructor Summary
GHGistBuilder(GitHub root)
           
 
Method Summary
 GHGist create()
          Creates a Gist based on the parameters specified thus far.
 GHGistBuilder description(String desc)
           
 GHGistBuilder file(String fileName, String content)
          Adds a new file.
 GHGistBuilder public_(boolean v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHGistBuilder

public GHGistBuilder(GitHub root)
Method Detail

description

public GHGistBuilder description(String desc)

public_

public GHGistBuilder public_(boolean v)

file

public GHGistBuilder file(String fileName,
                          String content)
Adds a new file.


create

public GHGist create()
              throws IOException
Creates a Gist based on the parameters specified thus far.

Throws:
IOException


Copyright © 2014. All rights reserved.