Sha256: ce7094440fc109a462871863392b2d80a951f70b6c1c898bb252892c2276fe74

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitlab-4.6.0 lib/gitlab/client/namespaces.rb