Sha256: 09a31cb4b02e81d21f9ef2a390d25ef4d4410f04506664f8b518e940a01dbaf2

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

class Gitlab::Client
  # Defines methods related to keys.
  # @see https://docs.gitlab.com/ce/api/keys.html
  module Keys
    # Gets information about a key.
    #
    # @example
    #   Gitlab.key(1)
    #
    # @param  [Integer] id The ID of a key.
    # @return [Gitlab::ObjectifiedHash]
    def key(id)
      get("/keys/#{id}")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitlab-4.5.0 lib/gitlab/client/keys.rb
gitlab-4.4.0 lib/gitlab/client/keys.rb
gitlab-4.3.0 lib/gitlab/client/keys.rb
gitlab-4.2.0 lib/gitlab/client/keys.rb
gitlab-4.1.0 lib/gitlab/client/keys.rb