Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone

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

Overview

Phone Property details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#country_codeString

Returns CountryCode of the detected Phone number.

Returns:

  • (String)

    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

#indexInteger

content.

Returns:

  • (Integer)

    Index(Location) of the Phone number in the input text



23
24
25
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/phone.rb', line 23

def index
  @index
end

#textString

Returns Detected Phone number.

Returns:

  • (String)

    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

.mapperObject

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