Class: ABBYY::Cloud::Namespaces::Files
- Defined in:
- lib/abbyy/cloud/namespaces/files.rb
Overview
Namespace for operations with orders
Instance Method Summary collapse
- #download(id:, token:) ⇒ Object
- #upload(file, export_format: nil, synthesis_mode: nil, **options) ⇒ Object
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, **) [:exportFormat] = export_format if export_format [:synthesisMode] = synthesis_mode if synthesis_mode Operations::UploadFile.new(settings).call(file, **) end |