Class: TencentCloud::Vm::V20210922::RecognitionResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vm::V20210922::RecognitionResult
- Defined in:
- lib/v20210922/models.rb
Overview
识别类标签结果信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(label = nil, tags = nil) ⇒ RecognitionResult
constructor
A new instance of RecognitionResult.
Constructor Details
#initialize(label = nil, tags = nil) ⇒ RecognitionResult
Returns a new instance of RecognitionResult.
1149 1150 1151 1152 |
# File 'lib/v20210922/models.rb', line 1149 def initialize(label=nil, =nil) @Label = label @Tags = end |
Instance Attribute Details
#Label ⇒ Object
1147 1148 1149 |
# File 'lib/v20210922/models.rb', line 1147 def Label @Label end |
#Tags ⇒ Object
1147 1148 1149 |
# File 'lib/v20210922/models.rb', line 1147 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'lib/v20210922/models.rb', line 1154 def deserialize(params) @Label = params['Label'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |