Class: TencentCloud::Hunyuan::V20230901::GetTokenCountResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::GetTokenCountResponse
- Defined in:
- lib/v20230901/models.rb
Overview
GetTokenCount返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(tokencount = nil, charactercount = nil, tokens = nil, requestid = nil) ⇒ GetTokenCountResponse
constructor
A new instance of GetTokenCountResponse.
Constructor Details
#initialize(tokencount = nil, charactercount = nil, tokens = nil, requestid = nil) ⇒ GetTokenCountResponse
Returns a new instance of GetTokenCountResponse.
1275 1276 1277 1278 1279 1280 |
# File 'lib/v20230901/models.rb', line 1275 def initialize(tokencount=nil, charactercount=nil, tokens=nil, requestid=nil) @TokenCount = tokencount @CharacterCount = charactercount @Tokens = tokens @RequestId = requestid end |
Instance Attribute Details
#CharacterCount ⇒ Object
1273 1274 1275 |
# File 'lib/v20230901/models.rb', line 1273 def CharacterCount @CharacterCount end |
#RequestId ⇒ Object
1273 1274 1275 |
# File 'lib/v20230901/models.rb', line 1273 def RequestId @RequestId end |
#TokenCount ⇒ Object
1273 1274 1275 |
# File 'lib/v20230901/models.rb', line 1273 def TokenCount @TokenCount end |
#Tokens ⇒ Object
1273 1274 1275 |
# File 'lib/v20230901/models.rb', line 1273 def Tokens @Tokens end |
Instance Method Details
#deserialize(params) ⇒ Object
1282 1283 1284 1285 1286 1287 |
# File 'lib/v20230901/models.rb', line 1282 def deserialize(params) @TokenCount = params['TokenCount'] @CharacterCount = params['CharacterCount'] @Tokens = params['Tokens'] @RequestId = params['RequestId'] end |