Class: Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
- Includes:
- MsRestAzure
- Defined in:
- lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#characters_count ⇒ Integer
Number of text elements recognized in the document.
-
#transactions_count ⇒ Integer
Number of transactions for the document.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DocumentStatistics class as Ruby Hash.
Instance Attribute Details
#characters_count ⇒ Integer
17 18 19 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb', line 17 def characters_count @characters_count end |
#transactions_count ⇒ Integer
20 21 22 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb', line 20 def transactions_count @transactions_count end |
Class Method Details
.mapper ⇒ Object
Mapper for DocumentStatistics class as Ruby Hash. This will be used for serialization/deserialization.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb', line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DocumentStatistics', type: { name: 'Composite', class_name: 'DocumentStatistics', model_properties: { characters_count: { client_side_validation: true, required: false, serialized_name: 'charactersCount', type: { name: 'Number' } }, transactions_count: { client_side_validation: true, required: false, serialized_name: 'transactionsCount', type: { name: 'Number' } } } } } end |