Sha256: 6fa9e4859b6520217213a01b686d48066cf37618ab7979dcb2bbd190b428db0c

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

class Gitlab::Client
  # Defines methods related to namespaces
  # @see https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/namespaces.md
  module Namespaces
    # Gets a list of 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

3 entries across 3 versions & 1 rubygems

Version Path
gitlab-3.7.0 lib/gitlab/client/namespaces.rb
gitlab-3.6.1 lib/gitlab/client/namespaces.rb
gitlab-3.6.0 lib/gitlab/client/namespaces.rb