Module: Pipedrive::Operations::Update

Extended by:
ActiveSupport::Concern
Included in:
Activity, ActivityType, Deal, File, Goal, Note, Pipedrive::Organization, Person, PersonField, Pipeline, Product, Role, Stage, User
Defined in:
lib/pipedrive/operations/update.rb

Instance Method Summary collapse

Instance Method Details

#update(*args) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/pipedrive/operations/update.rb', line 8

def update(*args)
  params = args.extract_options!
  params.symbolize_keys!
  id = params.delete(:id) || args[0]
  raise 'id must be provided' unless id

  make_api_call(:put, id, params)
end