Class: PipedriveAPI::Deal

Inherits:
Base
  • Object
show all
Defined in:
lib/pipedrive_api/deal.rb

Class Method Summary collapse

Methods inherited from Base

all, auth, create, find, find_by_name, handle, remove, resource_path, update

Class Method Details

.duplicate(id) ⇒ Object



5
6
7
8
# File 'lib/pipedrive_api/deal.rb', line 5

def duplicate(id)
  response = post "#{resource_path}/#{id}/duplicate"
  handle response
end