Class: TencentCloud::Asr::V20190614::GetAsrVocabResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Asr::V20190614::GetAsrVocabResponse
- Defined in:
- lib/v20190614/models.rb
Overview
GetAsrVocab返回参数结构体
Instance Attribute Summary collapse
- #CreateTime ⇒ Object
- #Description ⇒ Object
- #Name ⇒ Object
- #RequestId ⇒ Object
- #State ⇒ Object
- #UpdateTime ⇒ Object
- #VocabId ⇒ Object
- #WordWeights ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, description = nil, vocabid = nil, wordweights = nil, createtime = nil, updatetime = nil, state = nil, requestid = nil) ⇒ GetAsrVocabResponse
constructor
A new instance of GetAsrVocabResponse.
Constructor Details
#initialize(name = nil, description = nil, vocabid = nil, wordweights = nil, createtime = nil, updatetime = nil, state = nil, requestid = nil) ⇒ GetAsrVocabResponse
Returns a new instance of GetAsrVocabResponse.
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'lib/v20190614/models.rb', line 1005 def initialize(name=nil, description=nil, vocabid=nil, wordweights=nil, createtime=nil, updatetime=nil, state=nil, requestid=nil) @Name = name @Description = description @VocabId = vocabid @WordWeights = wordweights @CreateTime = createtime @UpdateTime = updatetime @State = state @RequestId = requestid end |
Instance Attribute Details
#CreateTime ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def CreateTime @CreateTime end |
#Description ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def Description @Description end |
#Name ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def Name @Name end |
#RequestId ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def RequestId @RequestId end |
#State ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def State @State end |
#UpdateTime ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def UpdateTime @UpdateTime end |
#VocabId ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def VocabId @VocabId end |
#WordWeights ⇒ Object
1003 1004 1005 |
# File 'lib/v20190614/models.rb', line 1003 def WordWeights @WordWeights end |
Instance Method Details
#deserialize(params) ⇒ Object
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 |
# File 'lib/v20190614/models.rb', line 1016 def deserialize(params) @Name = params['Name'] @Description = params['Description'] @VocabId = params['VocabId'] unless params['WordWeights'].nil? @WordWeights = [] params['WordWeights'].each do |i| hotword_tmp = HotWord.new hotword_tmp.deserialize(i) @WordWeights << hotword_tmp end end @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @State = params['State'] @RequestId = params['RequestId'] end |