Module: DeeplSrt

Defined in:
lib/deepl_srt.rb,
lib/deepl_srt/version.rb

Overview

Main module of DeeplSrt

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
'0.1.5'

Class Method Summary collapse

Class Method Details

.deepl_srt(api_key, target_lang, input_path, result_path, from_line) ⇒ Object



10
11
12
13
# File 'lib/deepl_srt.rb', line 10

def self.deepl_srt(api_key, target_lang, input_path, result_path, from_line)
  srt_translate = SrtTranslate.new(api_key, target_lang, input_path, result_path)
  srt_translate.parse(from_line)
end