Module: Signnow::Operations::Delete::ClassMethods

Defined in:
lib/signnow/operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(attributes = {}) ⇒ Object

Deletes the given object

Parameters:

  • id (Integer)

    The id of the object that gets deleted



8
9
10
11
12
# File 'lib/signnow/operations/delete.rb', line 8

def delete(attributes={})
  id = attributes.delete(:id)
  response = Signnow.request(:delete, nil, api_delete_url(id) , {}, options_for_delete(attributes))
  true
end