Class: AsposeWordsCloud::UploadFileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_words_cloud/models/requests/upload_file_request.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.



49
50
51
52
53
# File 'lib/aspose_words_cloud/models/requests/upload_file_request.rb', line 49

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.



33
34
35
# File 'lib/aspose_words_cloud/models/requests/upload_file_request.rb', line 33

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/upload_file_request.rb', line 38

def path
  @path
end

#storage_nameObject

Storage name.



41
42
43
# File 'lib/aspose_words_cloud/models/requests/upload_file_request.rb', line 41

def storage_name
  @storage_name
end