Class: ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction
- Defined in:
- lib/moderation_api/models/webhook_event.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#action ⇒ Symbol, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction::Action
Your recommendation for the content: allow, review, or reject.
-
#behavior ⇒ Symbol, ...
How your recommendation combines with ours.
-
#reason ⇒ String?
A human-readable explanation for your recommendation.
-
#source ⇒ String?
Where your recommendation came from, e.g.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, behavior: nil, reason: nil, source: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ClientAction 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(action:, behavior: nil, reason: nil, source: nil) ⇒ Object
Some parameter documentations has been truncated, see ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction for more details.
A recommendation from your own client-side flagging.
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 5011
|
Instance Attribute Details
#action ⇒ Symbol, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction::Action
Your recommendation for the content: allow, review, or reject.
4988 4989 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4988 required :action, enum: -> { ModerationAPI::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction::Action } |
#behavior ⇒ Symbol, ...
How your recommendation combines with ours. Defaults to ‘escalate’, which only applies it when stricter than ours; ‘override’ replaces ours outright.
4996 4997 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4996 optional :behavior, enum: -> { ModerationAPI::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction::Behavior } |
#reason ⇒ String?
A human-readable explanation for your recommendation.
5003 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5003 optional :reason, String |
#source ⇒ String?
Where your recommendation came from, e.g. “banned-ip”.
5009 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5009 optional :source, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 5036
|