Class: DeeplAPI::UsageInformation
- Inherits:
-
Object
- Object
- DeeplAPI::UsageInformation
- Defined in:
- lib/deepl_api.rb
Overview
Information about API usage & limits for this account.
Instance Attribute Summary collapse
-
#character_count ⇒ Object
readonly
How many characters were already translated in the current billing period.
-
#character_limit ⇒ Object
readonly
How many characters can be translated per billing period, based on the account settings.
Instance Method Summary collapse
-
#initialize(character_limit:, character_count:) ⇒ UsageInformation
constructor
A new instance of UsageInformation.
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_count ⇒ Object (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_limit ⇒ Object (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 |