Class: GoogleTranslateScraper::Models::Translation
- Inherits:
-
Object
- Object
- GoogleTranslateScraper::Models::Translation
- Defined in:
- lib/google_translate_scraper/models/translation.rb
Instance Attribute Summary collapse
-
#search_text ⇒ Object
Returns the value of attribute search_text.
-
#source_language ⇒ Object
Returns the value of attribute source_language.
-
#target_language ⇒ Object
Returns the value of attribute target_language.
-
#translated_text ⇒ Object
Returns the value of attribute translated_text.
Instance Method Summary collapse
-
#initialize(arguments = {}) ⇒ Translation
constructor
A new instance of Translation.
Constructor Details
#initialize(arguments = {}) ⇒ Translation
Returns a new instance of Translation.
8 9 10 11 12 |
# File 'lib/google_translate_scraper/models/translation.rb', line 8 def initialize(arguments = {}) arguments.each do |key, value| instance_variable_set("@#{key}", value) end end |
Instance Attribute Details
#search_text ⇒ Object
Returns the value of attribute search_text.
6 7 8 |
# File 'lib/google_translate_scraper/models/translation.rb', line 6 def search_text @search_text end |
#source_language ⇒ Object
Returns the value of attribute source_language.
6 7 8 |
# File 'lib/google_translate_scraper/models/translation.rb', line 6 def source_language @source_language end |
#target_language ⇒ Object
Returns the value of attribute target_language.
6 7 8 |
# File 'lib/google_translate_scraper/models/translation.rb', line 6 def target_language @target_language end |
#translated_text ⇒ Object
Returns the value of attribute translated_text.
6 7 8 |
# File 'lib/google_translate_scraper/models/translation.rb', line 6 def translated_text @translated_text end |