Class: TencentCloud::Ims::V20201229::LibResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ims::V20201229::LibResult
- Defined in:
- lib/v20201229/models.rb
Overview
用于返回黑白库比对结果的详细信息
Instance Attribute Summary collapse
-
#Details ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Label ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Scene ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Score ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#SubLabel ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Suggestion ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(scene = nil, suggestion = nil, label = nil, sublabel = nil, score = nil, details = nil) ⇒ LibResult
constructor
A new instance of LibResult.
Constructor Details
#initialize(scene = nil, suggestion = nil, label = nil, sublabel = nil, score = nil, details = nil) ⇒ LibResult
Returns a new instance of LibResult.
426 427 428 429 430 431 432 433 |
# File 'lib/v20201229/models.rb', line 426 def initialize(scene=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, details=nil) @Scene = scene @Suggestion = suggestion @Label = label @SubLabel = sublabel @Score = score @Details = details end |
Instance Attribute Details
#Details ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
424 425 426 |
# File 'lib/v20201229/models.rb', line 424 def Details @Details end |
#Label ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
424 425 426 |
# File 'lib/v20201229/models.rb', line 424 def Label @Label end |
#Scene ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
424 425 426 |
# File 'lib/v20201229/models.rb', line 424 def Scene @Scene end |
#Score ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
424 425 426 |
# File 'lib/v20201229/models.rb', line 424 def Score @Score end |
#SubLabel ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
424 425 426 |
# File 'lib/v20201229/models.rb', line 424 def SubLabel @SubLabel end |
#Suggestion ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
424 425 426 |
# File 'lib/v20201229/models.rb', line 424 def Suggestion @Suggestion end |
Instance Method Details
#deserialize(params) ⇒ Object
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/v20201229/models.rb', line 435 def deserialize(params) @Scene = params['Scene'] @Suggestion = params['Suggestion'] @Label = params['Label'] @SubLabel = params['SubLabel'] @Score = params['Score'] unless params['Details'].nil? @Details = [] params['Details'].each do |i| libdetail_tmp = LibDetail.new libdetail_tmp.deserialize(i) @Details << libdetail_tmp end end end |