LoginSignup
5
5

More than 5 years have passed since last update.

GitLab API | gitlab gem で プロジェクトの一覧を取得する

Posted at

GitLab API | gitlab gem で プロジェクトの一覧を取得する

概要

gitlab gem で プロジェクトの一覧を取得します

サンプル

require 'gitlab'

Gitlab.configure do |config|
  config.endpoint       = 'http://some_path/api/v3' 
  config.private_token  = 'your token'
end
projects =  Gitlab.projects

puts projects.first.id
puts projects.first.name
puts projects.first.description
puts projects.first.public

出力

10
some_project
some_project description
false

参照

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5