Class: PainfulTranslate::GoogleTranslator
- Inherits:
-
Object
- Object
- PainfulTranslate::GoogleTranslator
- Defined in:
- lib/painful_translate/google_translator.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#session ⇒ Object
Returns the value of attribute session.
-
#strings ⇒ Object
Returns the value of attribute strings.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
2 3 4 |
# File 'lib/painful_translate/google_translator.rb', line 2 def from @from end |
#session ⇒ Object
Returns the value of attribute session.
2 3 4 |
# File 'lib/painful_translate/google_translator.rb', line 2 def session @session end |
#strings ⇒ Object
Returns the value of attribute strings.
2 3 4 |
# File 'lib/painful_translate/google_translator.rb', line 2 def strings @strings end |
#to ⇒ Object
Returns the value of attribute to.
2 3 4 |
# File 'lib/painful_translate/google_translator.rb', line 2 def to @to end |
Instance Method Details
#translations ⇒ Object
4 5 6 |
# File 'lib/painful_translate/google_translator.rb', line 4 def translations PainfulTranslate::TranslationPage.new(_page).translation_output_strings end |