Sha256: 878d77f2c5096acd30ac04cb210f581a07827626a4e8ad4fb0c16e66279ca10f
Contents?: true
Size: 1.58 KB
Versions: 94
Compression:
Stored size: 1.58 KB
Contents
module Translator module Smartling class ApiRequestsGenerator def self.create_job(locales:, due_date:) ::Translator::Smartling::API::CreateJob.call( locales: locales, due_date: due_date, project_id: project_id, token: token ) end def self.create_batch(job_id:, requests:) ::Translator::Smartling::API::CreateBatch.call( project_id: project_id, job_id: job_id, token: token, requests: requests ) end def self.upload_file(batch_id:, translation_request:) ::Translator::Smartling::API::UploadFile.call( project_id: project_id, batch_id: batch_id, token: token, translation_request: translation_request ) end def self.file_uris ::Translator::Smartling::API::FileUris.call( project_id: project_id, token: token ) end def self.get_file_status(file_uri:) ::Translator::Smartling::API::FileStatus.call( project_id: project_id, token: token, file_uri: file_uri ) end def self.download_file(locale:, file_uri:) ::Translator::Smartling::API::DownloadFile.call( project_id: project_id, token: token, locale_id: locale, file_uri: file_uri ) end def self.token @token ||= Translator::Smartling::TokenGenerator.token end def self.project_id @project_id ||= ENV['SMARTLING_PROJECT_ID'] end end end end
Version data entries
94 entries across 94 versions & 1 rubygems