Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb
Overview
Phone Property details.
Instance Attribute Summary collapse
-
#country_code ⇒ String
CountryCode of the detected Phone number.
-
#index ⇒ Integer
content.
-
#text ⇒ String
Detected Phone number.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Phone class as Ruby Hash.
Instance Attribute Details
#country_code ⇒ String
Returns CountryCode of the detected Phone number.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb', line 16 def country_code @country_code end |
#index ⇒ Integer
content.
23 24 25 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb', line 23 def index @index end |
#text ⇒ String
Returns Detected Phone number.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb', line 19 def text @text end |
Class Method Details
.mapper ⇒ Object
Mapper for Phone class as Ruby Hash. This will be used for serialization/deserialization.
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 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb', line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Phone', type: { name: 'Composite', class_name: 'Phone', model_properties: { country_code: { client_side_validation: true, required: false, serialized_name: 'CountryCode', type: { name: 'String' } }, text: { client_side_validation: true, required: false, serialized_name: 'Text', type: { name: 'String' } }, index: { client_side_validation: true, required: false, serialized_name: 'Index', type: { name: 'Number' } } } } } end |