GeneralScripting / pipedrive-ruby

31 stars 148 forks source link

Add #destroy to pipedrive/base #29

Closed natikgadzhi closed 4 years ago

natikgadzhi commented 9 years ago

An easy way to delete items via ruby api.

No tests though. I'm using almost the same code for deals, organizations, contacts etc and it works.

I can see a situation this backfires: trying to remove a person /w associated activities on him will result in an error and we should either support force: true, or return a relevant message.

But still, returning bad_response will give sufficient information. That't a good first step, right?

coveralls commented 9 years ago

Coverage Status

Coverage decreased (-0.57%) to 77.54% when pulling af2b0a3f060f297ed15699d4d5990048fd332085 on xnutsive:patch-1 into e640075da21abcce6b6b2783b0aebaacf25cd98c on GeneralScripting:master.