Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Match
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Match
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb
Overview
The match details.
Instance Attribute Summary collapse
-
#label ⇒ String
The label.
-
#match_id ⇒ Integer
The match id.
-
#score ⇒ Float
Confidence score of the image match.
-
#source ⇒ String
The source.
-
#tags ⇒ Array<Integer>
The tags for match details.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Match class as Ruby Hash.
Instance Attribute Details
#label ⇒ String
Returns The label.
28 29 30 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 28 def label @label end |
#match_id ⇒ Integer
Returns The match id.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 19 def match_id @match_id end |
#score ⇒ Float
Returns Confidence score of the image match.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 16 def score @score end |
#source ⇒ String
Returns The source.
22 23 24 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 22 def source @source end |
#tags ⇒ Array<Integer>
Returns The tags for match details.
25 26 27 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 25 def @tags end |
Class Method Details
.mapper ⇒ Object
Mapper for Match class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/match.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Match', type: { name: 'Composite', class_name: 'Match', model_properties: { score: { client_side_validation: true, required: false, serialized_name: 'Score', type: { name: 'Double' } }, match_id: { client_side_validation: true, required: false, serialized_name: 'MatchId', type: { name: 'Number' } }, source: { client_side_validation: true, required: false, serialized_name: 'Source', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'Tags', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'NumberElementType', type: { name: 'Number' } } } }, label: { client_side_validation: true, required: false, serialized_name: 'Label', type: { name: 'String' } } } } } end |