Class: SfConnect::Payload

Inherits:
Object
  • Object
show all
Defined in:
lib/sf_connect/payload.rb

Overview

payload for salesforce

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record:, for_upload: nil, for_download: nil) ⇒ Payload

Returns a new instance of Payload.



6
7
8
9
10
# File 'lib/sf_connect/payload.rb', line 6

def initialize(record:, for_upload: nil, for_download: nil)
  @record = record
  @for_upload = for_upload
  @for_download = for_download
end

Instance Attribute Details

#for_downloadObject (readonly)

Returns the value of attribute for_download.



4
5
6
# File 'lib/sf_connect/payload.rb', line 4

def for_download
  @for_download
end

#for_uploadObject (readonly)

Returns the value of attribute for_upload.



4
5
6
# File 'lib/sf_connect/payload.rb', line 4

def for_upload
  @for_upload
end

#recordObject (readonly)

Returns the value of attribute record.



4
5
6
# File 'lib/sf_connect/payload.rb', line 4

def record
  @record
end