Method: Gitlab::Client::SystemHooks#hooks

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

#hooks(options = {}) ⇒ Array<Gitlab::ObjectifiedHash> Also known as: system_hooks

Gets a list of system hooks.

Examples:

Gitlab.hooks
Gitlab.system_hooks

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    The page number.

  • :per_page (Integer)

    The number of results per page.

Returns:

[View source]

17
18
19
# File 'lib/gitlab/client/system_hooks.rb', line 17

def hooks(options = {})
  get('/hooks', query: options)
end