Class: TranslationDiff::Preview
- Inherits:
-
Data
- Object
- Data
- TranslationDiff::Preview
- Defined in:
- lib/translation_diff/preview.rb
Overview
What a #translate call would do without doing it: sentences it would send, sentences already cached, their size, and characters -- the total the translate event itself reports, the denominator sendable_characters needs.
Instance Attribute Summary collapse
-
#cached_sentences ⇒ Object
readonly
Returns the value of attribute cached_sentences.
-
#characters ⇒ Object
readonly
Returns the value of attribute characters.
-
#sendable_characters ⇒ Object
readonly
Returns the value of attribute sendable_characters.
-
#sendable_sentences ⇒ Object
readonly
Returns the value of attribute sendable_sentences.
Instance Attribute Details
#cached_sentences ⇒ Object (readonly)
Returns the value of attribute cached_sentences
3 4 5 |
# File 'lib/translation_diff/preview.rb', line 3 def cached_sentences @cached_sentences end |
#characters ⇒ Object (readonly)
Returns the value of attribute characters
3 4 5 |
# File 'lib/translation_diff/preview.rb', line 3 def characters @characters end |
#sendable_characters ⇒ Object (readonly)
Returns the value of attribute sendable_characters
3 4 5 |
# File 'lib/translation_diff/preview.rb', line 3 def sendable_characters @sendable_characters end |
#sendable_sentences ⇒ Object (readonly)
Returns the value of attribute sendable_sentences
3 4 5 |
# File 'lib/translation_diff/preview.rb', line 3 def sendable_sentences @sendable_sentences end |