Class: Restforce::SObject

Inherits:
Object
  • Object
show all
Defined in:
lib/restforce/extensions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#update!(attributes) ⇒ Object

Public: Update the Salesforce record with the passed attributes.

attributes - A Hash of attributes to assign to the record.

Raises on update error.



11
12
13
14
15
# File 'lib/restforce/extensions.rb', line 11

def update!(attributes)
  ensure_id
  @client.update!(sobject_type, attributes.merge("Id" => self.Id))
  merge!(attributes)
end