Class: DeeplAPI::UsageInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/deepl_api.rb

Overview

Information about API usage & limits for this account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(character_limit:, character_count:) ⇒ UsageInformation

Returns a new instance of UsageInformation.



181
182
183
184
# File 'lib/deepl_api.rb', line 181

def initialize(character_limit:, character_count:)
  @character_limit = character_limit
  @character_count = character_count
end

Instance Attribute Details

#character_countObject (readonly)

How many characters were already translated in the current billing period.



179
180
181
# File 'lib/deepl_api.rb', line 179

def character_count
  @character_count
end

#character_limitObject (readonly)

How many characters can be translated per billing period, based on the account settings.



177
178
179
# File 'lib/deepl_api.rb', line 177

def character_limit
  @character_limit
end