class LabClient::SystemHooks

Specifics

Specifics

Specifics

Specifics

Public Instance Methods

add(query = {}) click to toggle source

Add

# File lib/labclient/system_hooks/add.rb, line 29
def add(query = {})
  client.request(:post, 'hooks', SystemHook, query)
end
delete(system_hook_id) click to toggle source
# File lib/labclient/system_hooks/delete.rb, line 18
def delete(system_hook_id)
  system_hook_id = format_id(system_hook_id)
  client.request(:delete, "hooks/#{system_hook_id}")
end
list() click to toggle source
# File lib/labclient/system_hooks/list.rb, line 13
def list
  client.request(:get, 'hooks', SystemHook)
end
test(system_hook_id) click to toggle source
# File lib/labclient/system_hooks/test.rb, line 20
def test(system_hook_id)
  system_hook_id = format_id(system_hook_id)
  client.request(:get, "hooks/#{system_hook_id}")
end