Class: GroupDocsComparisonCloud::UploadFileRequest
- Inherits:
-
Object
- Object
- GroupDocsComparisonCloud::UploadFileRequest
- Defined in:
- lib/groupdocs_comparison_cloud/api/file_api.rb
Overview
Request model for upload_file operation.
Instance Attribute Summary collapse
-
#file ⇒ 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(path, file, storage_name = nil) ⇒ UploadFileRequest
constructor
Initializes a new instance.
Constructor Details
#initialize(path, file, storage_name = nil) ⇒ UploadFileRequest
Initializes a new instance.
723 724 725 726 727 |
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 723 def initialize(path, file, storage_name = nil) self.path = path self.file = file self.storage_name = storage_name end |
Instance Attribute Details
#file ⇒ Object
File to upload
714 715 716 |
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 714 def file @file 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.
712 713 714 |
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 712 def path @path end |
#storage_name ⇒ Object
Storage name
716 717 718 |
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 716 def storage_name @storage_name end |