Class: PainfulTranslate::GoogleTranslator

Inherits:
Object
  • Object
show all
Defined in:
lib/painful_translate/google_translator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from.



2
3
4
# File 'lib/painful_translate/google_translator.rb', line 2

def from
  @from
end

#sessionObject

Returns the value of attribute session.



2
3
4
# File 'lib/painful_translate/google_translator.rb', line 2

def session
  @session
end

#stringsObject

Returns the value of attribute strings.



2
3
4
# File 'lib/painful_translate/google_translator.rb', line 2

def strings
  @strings
end

#toObject

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

#translationsObject



4
5
6
# File 'lib/painful_translate/google_translator.rb', line 4

def translations
  PainfulTranslate::TranslationPage.new(_page).translation_output_strings
end