Class: Translatomatic::ConverterStats

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/translatomatic/converter_stats.rb

Overview

Translation statistics

Instance Attribute Summary collapse

Instance Attribute Details

#from_dbNumber (readonly)

Returns The number of translations that came from the database.

Returns:

  • (Number)

    The number of translations that came from the database.



9
10
11
# File 'lib/translatomatic/converter_stats.rb', line 9

def from_db
  @from_db
end

#from_translatorNumber (readonly)

Returns The number of translations that came from the translator.

Returns:

  • (Number)

    The number of translations that came from the translator.



12
13
14
# File 'lib/translatomatic/converter_stats.rb', line 12

def from_translator
  @from_translator
end

#translationsArray<Translatomatic::Translation> (readonly)

Returns A list of all translations.

Returns:



6
7
8
# File 'lib/translatomatic/converter_stats.rb', line 6

def translations
  @translations
end

#untranslatedNumber (readonly)

Returns The number of untranslated strings.

Returns:

  • (Number)

    The number of untranslated strings



15
16
17
# File 'lib/translatomatic/converter_stats.rb', line 15

def untranslated
  @untranslated
end