Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Address

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

Overview

Address details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#indexInteger

content.

Returns:

  • (Integer)

    Index(Location) of the Address in the input text



20
21
22
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/address.rb', line 20

def index
  @index
end

#textString

Returns Detected Address.

Returns:

  • (String)

    Detected Address.



16
17
18
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/address.rb', line 16

def text
  @text
end

Class Method Details

.mapperObject

Mapper for Address 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/1.0/generated/azure_cognitiveservices_contentmoderator/models/address.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Address',
    type: {
      name: 'Composite',
      class_name: 'Address',
      model_properties: {
        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