class Restforce::SObject

def attrs

key and parent/child relationships removed.
Public: Returns a hash representation of this object with the attributes
def attrs
  self.to_hash.reject { |key, _| key =~ /.*__r/ || key =~ /^attributes$/ }
end