File: versions.rb

package info (click to toggle)
ruby-gitlab 6.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,824 kB
  • sloc: ruby: 12,742; makefile: 7; sh: 4; javascript: 3
file content (18 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (5)
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