Skip to content

Commit

Permalink
added delete activity endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
modhaliwal committed Apr 3, 2015
1 parent e640075 commit 97fac44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/pipedrive/activity.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module Pipedrive
class Activity < Base

def delete_activity activity_id
res = delete "#{resource_path}/#{id}", { :body => { :id => activity_id } }
res.success? ? nil : bad_response(res,activity_id)
end

end
end

0 comments on commit 97fac44

Please sign in to comment.