Class: ModerationAPI::Models::Actions::ExecuteExecuteByIDResponse

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

Overview

See Also:

  • ModerationAPI::Resources::Actions::Execute#execute_by_id

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(action_id:, ids:, success:) ⇒ Object

Parameters:

  • action_id (String)

    The ID of the action.

  • ids (Array<String>)

    The IDs of the content items.

  • success (Boolean)

    Action executed successfully.



# File 'lib/moderation_api/models/actions/execute_execute_by_id_response.rb', line 26

Instance Attribute Details

#action_idString

The ID of the action.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/moderation_api/models/actions/execute_execute_by_id_response.rb', line 12

required :action_id, String, api_name: :actionId

#idsArray<String>

The IDs of the content items.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


18
# File 'lib/moderation_api/models/actions/execute_execute_by_id_response.rb', line 18

required :ids, ModerationAPI::Internal::Type::ArrayOf[String]

#successBoolean

Action executed successfully.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


24
# File 'lib/moderation_api/models/actions/execute_execute_by_id_response.rb', line 24

required :success, ModerationAPI::Internal::Type::Boolean

Instance Method Details

#to_hash{

Returns:

  • ({)


20
# File 'sig/moderation_api/models/actions/execute_execute_by_id_response.rbs', line 20

def to_hash: -> {