Class: HelloSign::Proxy::ReusableForm

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_sign/proxy/reusable_form.rb

Constant Summary

Constants inherited from Object

Object::DEFAULT_PAGE

Instance Method Summary collapse

Constructor Details

#initialize(client, form_id) ⇒ ReusableForm

Returns a new instance of ReusableForm.



7
8
9
10
11
# File 'lib/hello_sign/proxy/reusable_form.rb', line 7

def initialize(client, form_id)
  super(client)

  @form_id = form_id
end

Instance Method Details

#grant_access(params = {}) ⇒ Object



21
22
23
# File 'lib/hello_sign/proxy/reusable_form.rb', line 21

def grant_access(params = {})
  @client.post("/reusable_form/add_user/#@form_id", body: params)
end

#list(params = {}) ⇒ Object



13
14
15
# File 'lib/hello_sign/proxy/reusable_form.rb', line 13

def list(params = {})
  @client.get('/reusable_form/list', params: params)
end

#revoke_access(params = {}) ⇒ Object



25
26
27
# File 'lib/hello_sign/proxy/reusable_form.rb', line 25

def revoke_access(params = {})
  @client.post("/reusable_form/remove_user/#@form_id", body: params)
end

#showObject



17
18
19
# File 'lib/hello_sign/proxy/reusable_form.rb', line 17

def show
  @client.get("/reusable_form/#@form_id")
end