Class: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label
- Defined in:
- lib/safety_kit/models/beta/event_create_params.rb
Instance Attribute Summary collapse
-
#label ⇒ String
Stable snake_case report label category.
Instance Method Summary collapse
-
#initialize(event_name:, labels:, source_id:, source_type:, timestamp:, type:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest for more details.
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:, type:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil) ⇒ Object
Some parameter documentations has been truncated, see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest 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.
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 1718 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
#label ⇒ String
Stable snake_case report label category.
1723 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 1723 required :label, String |