Method: Restforce::SObject#save

Defined in:
lib/restforce/sobject.rb

#saveObject

Public: Persist the attributes to Salesforce.

Examples

 = client.query('select Id, Name from Account').first
.Name = 'Foobar'
.save

26
27
28
29
# File 'lib/restforce/sobject.rb', line 26

def save
  ensure_id
  @client.update(sobject_type, attrs)
end