class Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone
Phone
Property details.
Attributes
country_code[RW]
@return [String] CountryCode of the detected Phone
number.
index[RW]
@return [Integer] Index(Location) of the Phone
number in the input text content.
text[RW]
@return [String] Detected Phone
number.
Private Class Methods
mapper()
click to toggle source
Mapper for Phone
class as Ruby Hash. This will be used for serialization/deserialization.
# 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