Method: Restforce::SObject#attrs

Defined in:
lib/restforce/sobject.rb

#attrsObject

Public: Returns a hash representation of this object with the attributes key and parent/child relationships removed.

[View source]

54
55
56
# File 'lib/restforce/sobject.rb', line 54

def attrs
  self.to_hash.reject { |key, _| key =~ /.*__r/ || key =~ /^attributes$/ }
end