Method: Github::Client::Orgs::Hooks#get

Defined in:
lib/github_api/client/orgs/hooks.rb

#get(*args) ⇒ Object Also known as: find

Get a single hook

Examples:

github = Github.new
github.orgs.hooks.get 'org-name', 'hook-id'

See Also:



40
41
42
43
44
45
# File 'lib/github_api/client/orgs/hooks.rb', line 40

def get(*args)
  arguments(args, required: [:org_name, :id])

  get_request("/orgs/#{arguments.org_name}/hooks/#{arguments.id}",
              arguments.params)
end