Class: TranslationDiff::Preview

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#cached_sentences ⇒ Object (readonly)

Returns the value of attribute cached_sentences

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of sendable_sentences



3
4
5
# File 'lib/translation_diff/preview.rb', line 3

def sendable_sentences
  @sendable_sentences
end