Sha256: 621607dda0116bde9b405137411642ef539fdac69bdebd147d2768cd18a5e5e3

Contents?: true

Size: 727 Bytes

Versions: 26

Compression:

Stored size: 727 Bytes

Contents

# 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

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
gitlab-4.11.0 lib/gitlab/client/namespaces.rb
gitlab-4.10.0 lib/gitlab/client/namespaces.rb
gitlab-4.9.0 lib/gitlab/client/namespaces.rb
gitlab-4.8.0 lib/gitlab/client/namespaces.rb
gitlab-4.7.0 lib/gitlab/client/namespaces.rb
gitlab-4.6.1 lib/gitlab/client/namespaces.rb