class Restforce::SObject
def save
account.Name = 'Foobar'
account = client.query('select Id, Name from Account').first
Examples
Public: Persist the attributes to Salesforce.
def save # Remove 'attributes' and parent/child relationships. We only want to # persist the attributes on the sobject. ensure_id attrs = self.to_hash.reject { |key, _| key =~ /.*__r/ || key =~ /^attributes$/ } @client.update(sobject_type, attrs) end