Class: Translatomatic::Translation::Stats
- Inherits:
-
Object
- Object
- Translatomatic::Translation::Stats
- Includes:
- Util
- Defined in:
- lib/translatomatic/translation/stats.rb
Overview
Translation statistics
Instance Attribute Summary collapse
-
#from_db ⇒ Number
readonly
The number of translations that came from the database.
-
#from_provider ⇒ Number
readonly
The number of translations that came from the provider.
-
#translations ⇒ Array<Result>
readonly
A list of all translations.
-
#untranslated ⇒ Number
readonly
The number of untranslated strings.
Instance Method Summary collapse
-
#+(other) ⇒ Stats
Combine stats with another object.
Instance Attribute Details
#from_db ⇒ Number (readonly)
Returns The number of translations that came from the database.
11 12 13 |
# File 'lib/translatomatic/translation/stats.rb', line 11 def from_db @from_db end |
#from_provider ⇒ Number (readonly)
Returns The number of translations that came from the provider.
14 15 16 |
# File 'lib/translatomatic/translation/stats.rb', line 14 def from_provider @from_provider end |
#translations ⇒ Array<Result> (readonly)
Returns A list of all translations.
8 9 10 |
# File 'lib/translatomatic/translation/stats.rb', line 8 def translations @translations end |
#untranslated ⇒ Number (readonly)
Returns The number of untranslated strings.
17 18 19 |
# File 'lib/translatomatic/translation/stats.rb', line 17 def untranslated @untranslated end |