Class: Merriam::Utils::TranslateText
- Inherits:
-
Object
- Object
- Merriam::Utils::TranslateText
- Defined in:
- lib/merriam/core/translate_text.rb
Instance Attribute Summary collapse
-
#detected ⇒ Object
Returns the value of attribute detected.
-
#from ⇒ Object
Returns the value of attribute from.
-
#model ⇒ Object
Returns the value of attribute model.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#text ⇒ Object
Returns the value of attribute text.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(options) ⇒ TranslateText
constructor
A new instance of TranslateText.
Constructor Details
#initialize(options) ⇒ TranslateText
8 9 10 11 12 13 14 15 |
# File 'lib/merriam/core/translate_text.rb', line 8 def initialize() @text = ['text'] @to = ['to'] @origin = ['origin'] @from = ['from'] @model = ['model'] @detected = ['detected'] end |
Instance Attribute Details
#detected ⇒ Object
Returns the value of attribute detected.
6 7 8 |
# File 'lib/merriam/core/translate_text.rb', line 6 def detected @detected end |
#from ⇒ Object
Returns the value of attribute from.
6 7 8 |
# File 'lib/merriam/core/translate_text.rb', line 6 def from @from end |
#model ⇒ Object
Returns the value of attribute model.
6 7 8 |
# File 'lib/merriam/core/translate_text.rb', line 6 def model @model end |
#origin ⇒ Object
Returns the value of attribute origin.
6 7 8 |
# File 'lib/merriam/core/translate_text.rb', line 6 def origin @origin end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/merriam/core/translate_text.rb', line 6 def text @text end |
#to ⇒ Object
Returns the value of attribute to.
6 7 8 |
# File 'lib/merriam/core/translate_text.rb', line 6 def to @to end |