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.
1130 1131 1132 1133 |
# File 'lib/v20210922/models.rb', line 1130 def initialize(label=nil, =nil) @Label = label @Tags = end |
Instance Attribute Details
#Label ⇒ Object
1128 1129 1130 |
# File 'lib/v20210922/models.rb', line 1128 def Label @Label end |
#Tags ⇒ Object
1128 1129 1130 |
# File 'lib/v20210922/models.rb', line 1128 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 |
# File 'lib/v20210922/models.rb', line 1135 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 |