From 97fac44f50177f588085a112fcfda6f3574ccbc3 Mon Sep 17 00:00:00 2001 From: Mo Dhaliwal Date: Fri, 3 Apr 2015 14:19:09 -0700 Subject: [PATCH] added delete activity endpoint --- lib/pipedrive/activity.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pipedrive/activity.rb b/lib/pipedrive/activity.rb index d986d33..11298f6 100644 --- a/lib/pipedrive/activity.rb +++ b/lib/pipedrive/activity.rb @@ -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 \ No newline at end of file