Method: Restforce::SObject#attrs
- Defined in:
- lib/restforce/sobject.rb
permalink #attrs ⇒ Object
Public: Returns a hash representation of this object with the attributes key and parent/child relationships removed.
54 55 56 |
# File 'lib/restforce/sobject.rb', line 54 def attrs self.to_hash.reject { |key, _| key =~ /.*__r/ || key =~ /^attributes$/ } end |