Sha256: 69bacc246d2206bc93d42a6a70a3cc3de98b62925d48fd411649d4f7b83bad88

Contents?: true

Size: 387 Bytes

Versions: 9

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

require 'date'

module Geet
  module Github
    class Collaborator
      # Returns a flat list of names in string form.
      def self.list(api_interface)
        api_path = 'collaborators'
        response = api_interface.send_request(api_path, multipage: true)

        response.map { |user_entry| user_entry.fetch('login') }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
geet-0.3.2 lib/geet/github/collaborator.rb
geet-0.3.1 lib/geet/github/collaborator.rb
geet-0.3.0 lib/geet/github/collaborator.rb
geet-0.2.1 lib/geet/github/collaborator.rb
geet-0.2.0 lib/geet/github/collaborator.rb
geet-0.1.12 lib/geet/github/collaborator.rb
geet-0.1.11 lib/geet/github/collaborator.rb
geet-0.1.10 lib/geet/github/collaborator.rb
geet-0.1.9 lib/geet/github/collaborator.rb