Class: TencentCloud::Asr::V20190614::Vocab
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Asr::V20190614::Vocab
- Defined in:
- lib/v20190614/models.rb
Overview
Instance Attribute Summary collapse
-
#CreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Description ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#State ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TagInfos ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#UpdateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#VocabId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#WordWeights ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, description = nil, vocabid = nil, wordweights = nil, createtime = nil, updatetime = nil, state = nil, taginfos = nil) ⇒ Vocab
constructor
A new instance of Vocab.
Constructor Details
#initialize(name = nil, description = nil, vocabid = nil, wordweights = nil, createtime = nil, updatetime = nil, state = nil, taginfos = nil) ⇒ Vocab
Returns a new instance of Vocab.
2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 |
# File 'lib/v20190614/models.rb', line 2172 def initialize(name=nil, description=nil, vocabid=nil, wordweights=nil, createtime=nil, updatetime=nil, state=nil, taginfos=nil) @Name = name @Description = description @VocabId = vocabid @WordWeights = wordweights @CreateTime = createtime @UpdateTime = updatetime @State = state @TagInfos = taginfos end |
Instance Attribute Details
#CreateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def CreateTime @CreateTime end |
#Description ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def Description @Description end |
#Name ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def Name @Name end |
#State ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def State @State end |
#TagInfos ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def TagInfos @TagInfos end |
#UpdateTime ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def UpdateTime @UpdateTime end |
#VocabId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def VocabId @VocabId end |
#WordWeights ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
2170 2171 2172 |
# File 'lib/v20190614/models.rb', line 2170 def WordWeights @WordWeights end |
Instance Method Details
#deserialize(params) ⇒ Object
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 |
# File 'lib/v20190614/models.rb', line 2183 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'] @TagInfos = params['TagInfos'] end |