Class: TranslationDiff::Translation::Usage

Inherits:
Data
  • Object
show all
Defined in:
lib/translation_diff/translation/usage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

    the current value of tokens



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

def tokens
  @tokens
end