Module: Pipedrive::APIOperations::Update

Included in:
Resource
Defined in:
lib/pipedrive/api_operations/update.rb

Instance Method Summary collapse

Instance Method Details

#update(params) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/pipedrive/api_operations/update.rb', line 6

def update(params)
  response = request(
    update_method || :put,
    resource_url,
    search_for_fields(params)
  )
  update_attributes(response.dig(:data))
end