Class: AsposeWordsCloud::UploadFileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_words_cloud/models/requests/UploadFileRequest.rb

Overview

Request model for upload_file operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_content, path, storage_name = nil) ⇒ UploadFileRequest

Initializes a new instance.

Parameters:

  • file_content

    File to upload

  • path

    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.

  • storage_name (defaults to: nil)

    Storage name



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_contentObject

File to upload



36
37
38
# File 'lib/aspose_words_cloud/models/requests/UploadFileRequest.rb', line 36

def file_content
  @file_content
end

#pathObject

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_nameObject

Storage name



40
41
42
# File 'lib/aspose_words_cloud/models/requests/UploadFileRequest.rb', line 40

def storage_name
  @storage_name
end