Module: SfConnect::Uploader

Extended by:
ActiveSupport::Concern
Defined in:
lib/sf_connect/uploader.rb

Overview

upload salesforce object attribute

Instance Method Summary collapse

Instance Method Details

#upload_payload_for_salesforceObject



12
13
14
# File 'lib/sf_connect/uploader.rb', line 12

def upload_payload_for_salesforce
  self.class.salesforce_fields.payload_for_upload(self)
end

#upload_to_salesforceObject



8
9
10
# File 'lib/sf_connect/uploader.rb', line 8

def upload_to_salesforce
  self.class.update_salesforce_attributes(salesforce_object_id, upload_payload_for_salesforce)
end