class ABBYY::Cloud::Namespaces::Files

Namespace for operations with orders @see [api.abbyy.cloud/swagger/ui/index#!/File] ABBYY Cloud API

Public Instance Methods

download(id:, token:) click to toggle source
# File lib/abbyy/cloud/namespaces/files.rb, line 14
def download(id:, token:)
  Operations::DownloadFile.new(settings).call(id: id, token: token)
end
upload(file, export_format: nil, synthesis_mode: nil, **options) click to toggle source
# File lib/abbyy/cloud/namespaces/files.rb, line 8
def upload(file, export_format: nil, synthesis_mode: nil, **options)
  options[:exportFormat]  = export_format  if export_format
  options[:synthesisMode] = synthesis_mode if synthesis_mode
  Operations::UploadFile.new(settings).call(file, **options)
end