Class: ModerationAPI::Models::ContentSubmitResponse::Content

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/content_submit_response.rb

Overview

See Also:

Defined Under Namespace

Modules: Modified

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, masked:, modified:, transcript: nil) ⇒ Object

Some parameter documentations has been truncated, see ModerationAPI::Models::ContentSubmitResponse::Content for more details.

Potentially modified content.

Parameters:



# File 'lib/moderation_api/models/content_submit_response.rb', line 211

Instance Attribute Details

#idString

The unique identifier for the content. Either the contentId provided by you or an autogenerated ID.

Returns:

  • (String)


188
# File 'lib/moderation_api/models/content_submit_response.rb', line 188

required :id, String

#maskedBoolean

Whether any values have been masked.

Returns:

  • (Boolean)


194
# File 'lib/moderation_api/models/content_submit_response.rb', line 194

required :masked, ModerationAPI::Internal::Type::Boolean

#transcriptString?

The transcribed text from audio content. Only present when audio moderation is used and transcript inclusion is enabled on the channel.

Returns:

  • (String, nil)


209
# File 'lib/moderation_api/models/content_submit_response.rb', line 209

optional :transcript, String, nil?: true