File: namespaces.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 (22 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

class Gitlab::Client
  # Defines methods related to namespaces
  # @see https://docs.gitlab.com/ce/api/namespaces.html
  module Namespaces
    # Gets a list of namespaces.
    # @see https://docs.gitlab.com/ce/api/namespaces.html#list-namespaces
    #
    # @example
    #   Gitlab.namespaces
    #
    # @param  [Hash] options A customizable set of options.
    # @options options [Integer] :page The page number.
    # @options options [Integer] :per_page The number of results per page.
    # @options opttion [String]  :search The string to search for.
    # @return [Array<Gitlab::ObjectifiedHash>]
    def namespaces(options = {})
      get('/namespaces', query: options)
    end
  end
end