lib/deepl/requests/translate_text.rb in deepl-rb-0.0.1 vs lib/deepl/requests/translate_text.rb in deepl-rb-1.0.0
- old
+ new
@@ -1,11 +1,11 @@
module DeepL
module Requests
class TranslateText < Base
attr_reader :text, :source_lang, :target_lang
- def initialize(api, text, source_lang, target_lang)
- super(api)
+ def initialize(api, text, source_lang, target_lang, options = {})
+ super(api, options)
@text = text
@source_lang = source_lang
@target_lang = target_lang
end