Class: GroupDocsViewerCloud::DownloadFileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/groupdocs_viewer_cloud/api/file_api.rb

Overview

Request model for download_file operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, storage_name = nil, version_id = nil) ⇒ DownloadFileRequest

Initializes a new instance.

Parameters:

  • path

    File path e.g. ‘/folder/file.ext’

  • storage_name (defaults to: nil)

    Storage name

  • version_id (defaults to: nil)

    File version ID to download



609
610
611
612
613
# File 'lib/groupdocs_viewer_cloud/api/file_api.rb', line 609

def initialize(path, storage_name = nil, version_id = nil)
   self.path = path
   self.storage_name = storage_name
   self.version_id = version_id
end

Instance Attribute Details

#pathObject

File path e.g. ‘/folder/file.ext’



598
599
600
# File 'lib/groupdocs_viewer_cloud/api/file_api.rb', line 598

def path
  @path
end

#storage_nameObject

Storage name



600
601
602
# File 'lib/groupdocs_viewer_cloud/api/file_api.rb', line 600

def storage_name
  @storage_name
end

#version_idObject

File version ID to download



602
603
604
# File 'lib/groupdocs_viewer_cloud/api/file_api.rb', line 602

def version_id
  @version_id
end