Sha256: 9347367f59b207f70a400a17afa159b80a3a93f8af7526c8ebe00dfcd6948e9b

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

require 'date'

module Geet
  module Gitlab
    class Label
      # Returns a flat list of names in string form.
      def self.list(api_interface)
        api_path = "projects/#{api_interface.path_with_namespace(encoded: true)}/labels"
        response = api_interface.send_request(api_path, multipage: true)

        response.map { |label_entry| label_entry.fetch('name') }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geet-0.1.11 lib/geet/gitlab/label.rb