Method: Gitlab::Client::SystemHooks#hook

Defined in:
lib/gitlab/client/system_hooks.rb

#hook(id) ⇒ Array<Gitlab::ObjectifiedHash> Also known as: system_hook

Tests a system hook.

Examples:

Gitlab.hook(3)
Gitlab.system_hook(12)

Parameters:

  • id (Integer)

    The ID of a system hook.

Returns:

[View source]

46
47
48
# File 'lib/gitlab/client/system_hooks.rb', line 46

def hook(id)
  get("/hooks/#{id}")
end