Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Email
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ContentModerator::V1_0::Models::Email
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb
Overview
Email Address details.
Instance Attribute Summary collapse
-
#detected ⇒ String
Detected Email Address from the input text content.
-
#index ⇒ Integer
text content.
-
#sub_type ⇒ String
Subtype of the detected Email Address.
-
#text ⇒ String
Email Address in the input text content.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Email class as Ruby Hash.
Instance Attribute Details
#detected ⇒ String
Returns Detected Email Address from the input text content.
16 17 18 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb', line 16 def detected @detected end |
#index ⇒ Integer
text content.
26 27 28 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb', line 26 def index @index end |
#sub_type ⇒ String
Returns Subtype of the detected Email Address.
19 20 21 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb', line 19 def sub_type @sub_type end |
#text ⇒ String
Returns Email Address in the input text content.
22 23 24 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb', line 22 def text @text end |
Class Method Details
.mapper ⇒ Object
Mapper for Email class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Email', type: { name: 'Composite', class_name: 'Email', model_properties: { detected: { client_side_validation: true, required: false, serialized_name: 'Detected', type: { name: 'String' } }, sub_type: { client_side_validation: true, required: false, serialized_name: 'SubType', 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 |