Class: TranslationDiff::Translation::Usage
- Inherits:
-
Data
- Object
- Data
- TranslationDiff::Translation::Usage
- Defined in:
- lib/translation_diff/translation/usage.rb
Instance Attribute Summary collapse
-
#billed_characters ⇒ Object
readonly
Returns the value of attribute billed_characters.
-
#characters ⇒ Object
readonly
Returns the value of attribute characters.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Method Summary collapse
-
#initialize(characters:, billed_characters: nil, tokens: nil, model: nil) ⇒ Usage
constructor
A new instance of Usage.
Constructor Details
#initialize(characters:, billed_characters: nil, tokens: nil, model: nil) ⇒ Usage
Returns a new instance of Usage.
4 5 6 |
# File 'lib/translation_diff/translation/usage.rb', line 4 def initialize(characters:, billed_characters: nil, tokens: nil, model: nil) super end |
Instance Attribute Details
#billed_characters ⇒ Object (readonly)
Returns the value of attribute billed_characters
3 4 5 |
# File 'lib/translation_diff/translation/usage.rb', line 3 def billed_characters @billed_characters end |
#characters ⇒ Object (readonly)
Returns the value of attribute characters
3 4 5 |
# File 'lib/translation_diff/translation/usage.rb', line 3 def characters @characters end |
#model ⇒ Object (readonly)
Returns the value of attribute model
3 4 5 |
# File 'lib/translation_diff/translation/usage.rb', line 3 def model @model end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens
3 4 5 |
# File 'lib/translation_diff/translation/usage.rb', line 3 def tokens @tokens end |