File: versions.rb

package info (click to toggle)
ruby-gitlab 4.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,328 kB
  • sloc: ruby: 10,920; makefile: 7; sh: 4
file content (18 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class Gitlab::Client
  # Defines methods related to version
  # @see https://docs.gitlab.com/ce/api/version.html
  module Versions
    # Returns server version.
    # @see https://docs.gitlab.com/ce/api/version.html
    #
    # @example
    #   Gitlab.version
    #
    # @return [Array<Gitlab::ObjectifiedHash>]
    def version
      get('/version')
    end
  end
end