Method: Github::Client::Gists#forks

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

#forks(*args) ⇒ Object

List gist forks

Examples:

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

See Also:



266
267
268
269
270
271
272
# File 'lib/github_api/client/gists.rb', line 266

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

  response = get_request("/gists/#{arguments.id}/forks")
  return response unless block_given?
  response.each { |el| yield el }
end