Class: TencentCloud::Ams::V20201229::RecognitionResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ams::V20201229::RecognitionResult
- Defined in:
- lib/v20201229/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.
1050 1051 1052 1053 |
# File 'lib/v20201229/models.rb', line 1050 def initialize(label=nil, =nil) @Label = label @Tags = end |
Instance Attribute Details
#Label ⇒ Object
1048 1049 1050 |
# File 'lib/v20201229/models.rb', line 1048 def Label @Label end |
#Tags ⇒ Object
1048 1049 1050 |
# File 'lib/v20201229/models.rb', line 1048 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'lib/v20201229/models.rb', line 1055 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 |