Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Email

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb

Overview

Email Address details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#detectedString

Returns Detected Email Address from the input text content.

Returns:

  • (String)

    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

#indexInteger

text content.

Returns:

  • (Integer)

    Index(Location) of the Email address in the input



26
27
28
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/email.rb', line 26

def index
  @index
end

#sub_typeString

Returns Subtype of the detected Email Address.

Returns:

  • (String)

    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

#textString

Returns Email Address in the input text content.

Returns:

  • (String)

    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

.mapperObject

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