Method: Github::Client::Gists#fork

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

#fork(*args) ⇒ Object

Fork a gist

Examples:

github = Github.new
github.gists.fork 'gist-id'


251
252
253
254
255
# File 'lib/github_api/client/gists.rb', line 251

def fork(*args)
  arguments(args, required: [:id])

  post_request("/gists/#{arguments.id}/forks", arguments.params)
end