Class: Azure::CognitiveServices::TextAnalytics::V2_0::Models::MatchRecord

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/match_record.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#lengthInteger

text.

Returns:

  • (Integer)

    Length (in Unicode characters) for the entity match



25
26
27
# File 'lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/match_record.rb', line 25

def length
  @length
end

#offsetInteger

match text.

Returns:

  • (Integer)

    Start position (in Unicode characters) for the entity



21
22
23
# File 'lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/match_record.rb', line 21

def offset
  @offset
end

#textString

Returns Entity text as appears in the request.

Returns:

  • (String)

    Entity text as appears in the request.



17
18
19
# File 'lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/match_record.rb', line 17

def text
  @text
end

Class Method Details

.mapperObject

Mapper for MatchRecord class as Ruby Hash. This will be used for serialization/deserialization.



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
67
68
# File 'lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/match_record.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MatchRecord',
    type: {
      name: 'Composite',
      class_name: 'MatchRecord',
      model_properties: {
        text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'text',
          type: {
            name: 'String'
          }
        },
        offset: {
          client_side_validation: true,
          required: false,
          serialized_name: 'offset',
          type: {
            name: 'Number'
          }
        },
        length: {
          client_side_validation: true,
          required: false,
          serialized_name: 'length',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end