Class: SfConnect::Payload
- Inherits:
-
Object
- Object
- SfConnect::Payload
- Defined in:
- lib/sf_connect/payload.rb
Overview
payload for salesforce
Instance Attribute Summary collapse
-
#for_download ⇒ Object
readonly
Returns the value of attribute for_download.
-
#for_upload ⇒ Object
readonly
Returns the value of attribute for_upload.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record:, for_upload: nil, for_download: nil) ⇒ Payload
constructor
A new instance of Payload.
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_download ⇒ Object (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_upload ⇒ Object (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 |
#record ⇒ Object (readonly)
Returns the value of attribute record.
4 5 6 |
# File 'lib/sf_connect/payload.rb', line 4 def record @record end |