Class: NeetoTranslateCli::Translator
- Inherits:
-
Object
- Object
- NeetoTranslateCli::Translator
- Defined in:
- lib/neeto_translate_cli/translator.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Translator
constructor
A new instance of Translator.
- #process! ⇒ Object
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() @api = NeetoTranslateCli::Api.new @options = end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
9 10 11 |
# File 'lib/neeto_translate_cli/translator.rb', line 9 def api @api end |
#job_id ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/neeto_translate_cli/translator.rb', line 9 def @options end |
Instance Method Details
#process! ⇒ Object
16 17 18 |
# File 'lib/neeto_translate_cli/translator.rb', line 16 def process! translate! end |