class Github::Gists::Comments

def create(*args)


github.gists.comments.create 'gist-id'
github = Github.new
= Examples

Create a comment
def create(*args)
  arguments(args, :required => [:gist_id]) do
    sift VALID_GIST_COMMENT_OPTIONS
    assert_required REQUIRED_GIST_COMMENT_OPTIONS
  end
  post_request("/gists/#{gist_id}/comments", arguments.params)
end

def delete(*args)


github.gists.comments.delete 'gist-id', 'comment-id'
github = Github.new
= Examples

Delete a comment
def delete(*args)
  arguments(args, :required => [:gist_id, :comment_id])
  delete_request("/gists/#{gist_id}/comments/#{comment_id}", arguments.params)
end

def edit(*args)


github.gists.comments.edit 'gist-id', 'comment-id'
github = Github.new
= Examples

Edit a comment
def edit(*args)
  arguments(args, :required => [:gist_id, :comment_id]) do
    sift VALID_GIST_COMMENT_OPTIONS
    assert_required REQUIRED_GIST_COMMENT_OPTIONS
  end
  patch_request("/gists/#{gist_id}/comments/#{comment_id}", arguments.params)
end

def get(*args)


github.gists.comments.get 'gist-id', 'comment-id'
github = Github.new
= Examples

Get a single comment
def get(*args)
  arguments(args, :required => [:gist_id, :comment_id])
  get_request("/gists/#{gist_id}/comments/#{comment_id}", arguments.params)
end

def list(*args)


github.gists.comments.list 'gist-id'
github = Github.new
= Examples

List comments on a gist
def list(*args)
  arguments(args, :required => [:gist_id])
  response = get_request("/gists/#{gist_id}/comments", arguments.params)
  return response unless block_given?
  response.each { |el| yield el }
end