Class: NeetoTranslateCli::Translator

Inherits:
Object
  • Object
show all
Defined in:
lib/neeto_translate_cli/translator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Translator

Returns a new instance of Translator.



11
12
13
14
# File 'lib/neeto_translate_cli/translator.rb', line 11

def initialize(options)
  @api = NeetoTranslateCli::Api.new
  @options = options
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



9
10
11
# File 'lib/neeto_translate_cli/translator.rb', line 9

def api
  @api
end

#job_idObject (readonly)

Returns the value of attribute job_id.



9
10
11
# File 'lib/neeto_translate_cli/translator.rb', line 9

def job_id
  @job_id
end

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/neeto_translate_cli/translator.rb', line 9

def options
  @options
end

Instance Method Details

#process!Object



16
17
18
# File 'lib/neeto_translate_cli/translator.rb', line 16

def process!
  translate!
end