Class: Worldline::Connect::SDK::V1::Merchant::Disputes::UploadFileRequest
- Inherits:
-
Communication::MultipartFormDataRequest
- Object
- Communication::MultipartFormDataRequest
- Worldline::Connect::SDK::V1::Merchant::Disputes::UploadFileRequest
- Defined in:
- lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb
Overview
Multipart/form-data parameters for Upload File
Instance Attribute Summary collapse
-
#file ⇒ Worldline::Connect::SDK::Domain::UploadableFile
The current value of file.
Instance Method Summary collapse
-
#to_multipart_form_data_object ⇒ Worldline::Connect::SDK::Communication::MultipartFormDataObject
Representing the attributes of this class.
Instance Attribute Details
#file ⇒ Worldline::Connect::SDK::Domain::UploadableFile
Returns the current value of file.
17 18 19 |
# File 'lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb', line 17 def file @file end |
Instance Method Details
#to_multipart_form_data_object ⇒ Worldline::Connect::SDK::Communication::MultipartFormDataObject
Returns representing the attributes of this class.
22 23 24 25 26 |
# File 'lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb', line 22 def to_multipart_form_data_object result = MultipartFormDataObject.new result.add_file('file', @file) unless @file.nil? result end |