Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/pipedrive/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ def find_by_name(name, opts={})
res = get "#{resource_path}/find", :query => { :term => name }.merge(opts)
res.ok? ? new_list(res) : bad_response(res,{:name => name}.merge(opts))
end

def destroy
res = delete "#{resource_path}/#{id}"
res.ok? ? res : bad_response(res, attrs)
end

def resource_path
# The resource path should match the camelCased class name with the
Expand Down