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

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

Overview

See Also:

  • ModerationAPI::Models::ContentSubmitResponse#content

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.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#maskedBoolean

Whether any values have been masked.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

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

#modifiedString, ...

The modified content, if any.



200
201
202
# File 'lib/moderation_api/models/content_submit_response.rb', line 200

required :modified,
union: -> { ModerationAPI::Models::ContentSubmitResponse::Content::Modified },
nil?: true

#transcriptString?

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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :transcript, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


155
# File 'sig/moderation_api/models/content_submit_response.rbs', line 155

def to_hash: -> {