Class: Restforce::SObject
- Inherits:
-
Object
- Object
- Restforce::SObject
- Defined in:
- lib/restforce/extensions.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#update!(attributes) ⇒ Object
Public: Update the Salesforce record with the passed attributes.
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 |