Class: SignWell::WebHookResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sign_well/resources/web_hook_resource.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from SignWell::Resource

Instance Method Details

#create(params) ⇒ Object



7
8
9
# File 'lib/sign_well/resources/web_hook_resource.rb', line 7

def create(params)
  Response.new(post_request("hooks", params).body)
end

#delete(id) ⇒ Object



11
12
13
# File 'lib/sign_well/resources/web_hook_resource.rb', line 11

def delete(id)
  Response.new(delete_request("hooks/#{id}"))
end

#list(params = {}) ⇒ Object



3
4
5
# File 'lib/sign_well/resources/web_hook_resource.rb', line 3

def list(params={})
  Response.new(get_request("hooks", params).body)
end