Class: Merriam::Utils::TranslateText

Inherits:
Object
  • Object
show all
Defined in:
lib/merriam/core/translate_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ TranslateText

Returns a new instance of TranslateText.



8
9
10
11
12
13
14
15
# File 'lib/merriam/core/translate_text.rb', line 8

def initialize(options)
  @text = options['text']
  @to = options['to']
  @origin = options['origin']
  @from = options['from']
  @model = options['model']
  @detected = options['detected']
end

Instance Attribute Details

#detectedObject

Returns the value of attribute detected.



6
7
8
# File 'lib/merriam/core/translate_text.rb', line 6

def detected
  @detected
end

#fromObject

Returns the value of attribute from.



6
7
8
# File 'lib/merriam/core/translate_text.rb', line 6

def from
  @from
end

#modelObject

Returns the value of attribute model.



6
7
8
# File 'lib/merriam/core/translate_text.rb', line 6

def model
  @model
end

#originObject

Returns the value of attribute origin.



6
7
8
# File 'lib/merriam/core/translate_text.rb', line 6

def origin
  @origin
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/merriam/core/translate_text.rb', line 6

def text
  @text
end

#toObject

Returns the value of attribute to.



6
7
8
# File 'lib/merriam/core/translate_text.rb', line 6

def to
  @to
end