Class: Pangea::Models::AiGuard::RedactEntityResult::Entity

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/pangea/models/ai_guard/redact_entity_result.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, coerce, #deconstruct_keys, dump, fields, #initialize, #inspect, known_fields, optional, required, #to_h

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, type_info

Constructor Details

This class inherits a constructor from Pangea::Internal::Type::BaseModel

Instance Attribute Details

#actionString

The action taken on this Entity

Returns:

  • (String)


18
# File 'lib/pangea/models/ai_guard/redact_entity_result.rb', line 18

required :action, String

#redactedPangea::Internal::Type::Boolean



33
# File 'lib/pangea/models/ai_guard/redact_entity_result.rb', line 33

required :redacted, Pangea::Internal::Type::Boolean

#start_posInteger?

Returns:

  • (Integer, nil)


38
# File 'lib/pangea/models/ai_guard/redact_entity_result.rb', line 38

optional :start_pos, Integer, nil?: true

#typeString

Returns:

  • (String)


23
# File 'lib/pangea/models/ai_guard/redact_entity_result.rb', line 23

required :type, String

#valueString

Returns:

  • (String)


28
# File 'lib/pangea/models/ai_guard/redact_entity_result.rb', line 28

required :value, String