Class: ABBYY::Cloud::Namespaces::Files

Inherits:
Base
  • Object
show all
Defined in:
lib/abbyy/cloud/namespaces/files.rb

Overview

Namespace for operations with orders

See Also:

Instance Method Summary collapse

Instance Method Details

#download(id:, token:) ⇒ Object



14
15
16
# 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) ⇒ Object



8
9
10
11
12
# 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