Method: Github::Client::Gists#create

Defined in:
lib/github_api/client/gists.rb

#create(*args) ⇒ Hash

Create a gist

Examples:

github = Github.new
github.gists.create
  description: 'the description for this gist',
  public: true,
  files: {
    'file1.txt' => {
       content: 'String file contents'
     }
  }

Parameters:

Returns:

See Also:



131
132
133
134
135
# File 'lib/github_api/client/gists.rb', line 131

def create(*args)
  arguments(args)

  post_request("/gists", arguments.params)
end