Method: Restforce::SObject#save
- Defined in:
- lib/restforce/sobject.rb
#save ⇒ Object
Public: Persist the attributes to Salesforce.
Examples
account = client.query('select Id, Name from Account').first
account.Name = 'Foobar'
account.save
26 27 28 29 |
# File 'lib/restforce/sobject.rb', line 26 def save ensure_id @client.update(sobject_type, attrs) end |