Class: GroupDocsSignatureCloud::UploadFileRequest
- Inherits:
-
Object
- Object
- GroupDocsSignatureCloud::UploadFileRequest
- Defined in:
- lib/groupdocs_signature_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.
728 729 730 731 732 |
# File 'lib/groupdocs_signature_cloud/api/file_api.rb', line 728 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
719 720 721 |
# File 'lib/groupdocs_signature_cloud/api/file_api.rb', line 719 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.
717 718 719 |
# File 'lib/groupdocs_signature_cloud/api/file_api.rb', line 717 def path @path end |
#storage_name ⇒ Object
Storage name
721 722 723 |
# File 'lib/groupdocs_signature_cloud/api/file_api.rb', line 721 def storage_name @storage_name end |