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