class Github::Client::Gists::Comments

def create(*args)

Other tags:
    Api: - public

Options Hash: (**params)
  • :body (String) --

Parameters:
  • params (Hash) --

Other tags:
    See: https://developer.github.com/v3/gists/comments/#create-a-comment -
def create(*args)
  arguments(args, required: [:gist_id])
  post_request("/gists/#{arguments.gist_id}/comments", arguments.params)
end

def delete(*args)

Other tags:
    Api: - public

Other tags:
    See: https://developer.github.com/v3/gists/comments/#delete-a-comment -
def delete(*args)
  arguments(args, required: [:gist_id, :id])
  delete_request("/gists/#{arguments.gist_id}/comments/#{arguments.id}",
                 arguments.params)
end

def edit(*args)

Other tags:
    Api: - public

Options Hash: (**params)
  • :body (String) --

Parameters:
  • params (Hash) --

Other tags:
    See: https://developer.github.com/v3/gists/comments/#edit-a-comment -
def edit(*args)
  arguments(args, required: [:gist_id, :id])
  patch_request("/gists/#{arguments.gist_id}/comments/#{arguments.id}",
                arguments.params)
end

def get(*args)

Other tags:
    Api: - public

Other tags:
    See: https://developer.github.com/v3/gists/comments/#get-a-single-comment -
def get(*args)
  arguments(args, required: [:gist_id, :id])
  get_request("/gists/#{arguments.gist_id}/comments/#{arguments.id}",
              arguments.params)
end

def list(*args)

Other tags:
    Api: - public

Returns:
  • (Hash) -

Other tags:
    See: https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist -
def list(*args)
  arguments(args, required: [:gist_id])
  response = get_request("/gists/#{arguments.gist_id}/comments",
                         arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end