Sha256: 9cfa94863f962b032ad1991c0e407e01f9f8b370304b4b4ab36f370e615ad769

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

# 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

Version data entries

1 entries across 1 versions & 1 rubygems

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