Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb
Overview
The classification details of the text.
Instance Attribute Summary collapse
- #category1 ⇒ Score
- #category2 ⇒ Score
- #category3 ⇒ Score
-
#review_recommended ⇒ Boolean
The review recommended flag.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Classification class as Ruby Hash.
Instance Attribute Details
#category1 ⇒ Score
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 16 def category1 @category1 end |
#category2 ⇒ Score
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 19 def category2 @category2 end |
#category3 ⇒ Score
22 23 24 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 22 def category3 @category3 end |
#review_recommended ⇒ Boolean
Returns The review recommended flag.
25 26 27 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 25 def review_recommended @review_recommended end |
Class Method Details
.mapper ⇒ Object
Mapper for Classification class as Ruby Hash. This will be used for serialization/deserialization.
32 33 34 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 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/classification.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Classification', type: { name: 'Composite', class_name: 'Classification', model_properties: { category1: { client_side_validation: true, required: false, serialized_name: 'Category1', type: { name: 'Composite', class_name: 'Score' } }, category2: { client_side_validation: true, required: false, serialized_name: 'Category2', type: { name: 'Composite', class_name: 'Score' } }, category3: { client_side_validation: true, required: false, serialized_name: 'Category3', type: { name: 'Composite', class_name: 'Score' } }, review_recommended: { client_side_validation: true, required: false, serialized_name: 'ReviewRecommended', type: { name: 'Boolean' } } } } } end |