lib/sf_connect.rb in sf_connect-0.1.1 vs lib/sf_connect.rb in sf_connect-0.2.0
- old
+ new
@@ -9,11 +9,11 @@
autoload :Define
autoload :Fields
autoload :Uploader
autoload :Downloader
- # fetch salseforce result
- Result = Struct.new(:record, :binding_attributes, keyword_init: true)
+ # upload and download payload
+ Payload = Struct.new(:record, :for_upload, :for_download, keyword_init: true)
class << self
def define(salesforce_object_name, where: nil, **fields, &)
SfConnect::Define.new(salesforce_object_name, where:, fields:, &).call
end