Class: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/safety_kit/models/beta/event_create_params.rb

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(event_name:, labels:, source_id:, source_type:, timestamp:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil, type: :moderation_decision) ⇒ Object

Some parameter documentations has been truncated, see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision for more details.

A moderation label or decision from an automated enforcement system or manual review workflow. Do not send user_id; use source_type and source_id for attribution.

Parameters:



3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 3575

class Label < SafetyKit::Internal::Type::BaseModel
  # @!attribute label
  #   Stable snake_case report label category.
  #
  #   @return [String]
  required :label, String

  # @!method initialize(label:)
  #   Label category supplied with a user report.
  #
  #   @param label [String] Stable snake_case report label category.
end

Instance Attribute Details

#labelString

Stable snake_case report label category.

Returns:

  • (String)


3580
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 3580

required :label, String