Sha256: 7d49e73fde26613e35d707e197182b0837acc98f9d59d3482f944de8c1956193

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

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

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-4.5.0 lib/gitlab/client/namespaces.rb
gitlab-4.4.0 lib/gitlab/client/namespaces.rb
gitlab-4.3.0 lib/gitlab/client/namespaces.rb
gitlab-4.2.0 lib/gitlab/client/namespaces.rb
gitlab-4.1.0 lib/gitlab/client/namespaces.rb
gitlab-4.0.0 lib/gitlab/client/namespaces.rb
gitlab-akerl-4.0.0 lib/gitlab/client/namespaces.rb