Class: AsposeWordsCloud::UploadFileRequest
- Inherits:
-
Object
- Object
- AsposeWordsCloud::UploadFileRequest
- Defined in:
- lib/aspose_words_cloud/models/requests/UploadFileRequest.rb
Overview
Request model for upload_file operation.
Instance Attribute Summary collapse
-
#file_content ⇒ Object
File to upload.
-
#path ⇒ Object
Path where to upload including filename and extension e.g.
-
#storage_name ⇒ Object
Storage name.
Instance Method Summary collapse
-
#initialize(file_content, path, storage_name = nil) ⇒ UploadFileRequest
constructor
Initializes a new instance.
Constructor Details
#initialize(file_content, path, storage_name = nil) ⇒ UploadFileRequest
Initializes a new instance.
47 48 49 50 51 |
# File 'lib/aspose_words_cloud/models/requests/UploadFileRequest.rb', line 47 def initialize(file_content, path, storage_name = nil) self.file_content = file_content self.path = path self.storage_name = storage_name end |
Instance Attribute Details
#file_content ⇒ Object
File to upload
36 37 38 |
# File 'lib/aspose_words_cloud/models/requests/UploadFileRequest.rb', line 36 def file_content @file_content end |
#path ⇒ Object
Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
38 39 40 |
# File 'lib/aspose_words_cloud/models/requests/UploadFileRequest.rb', line 38 def path @path end |
#storage_name ⇒ Object
Storage name
40 41 42 |
# File 'lib/aspose_words_cloud/models/requests/UploadFileRequest.rb', line 40 def storage_name @storage_name end |