Class: ModerationAPI::Models::WebhookEvent::QueueItemRejected
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::QueueItemRejected
- Defined in:
- lib/moderation_api/models/webhook_event.rb
Defined Under Namespace
Classes: Data
Instance Attribute Summary collapse
- #api_version ⇒ Symbol, :v2
-
#created ⇒ Time
ISO 8601 timestamp of when the event was emitted.
- #data ⇒ ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data
-
#id ⇒ String
Stable event ID.
-
#type ⇒ Symbol, :"queue_item.rejected"
The event type.
Instance Method Summary collapse
- #initialize(id:, created:, data:, api_version: :v2, type: :"queue_item.rejected") ⇒ Object constructor
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:, created:, data:, api_version: :v2, type: :"queue_item.rejected") ⇒ Object
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 4289
|
Instance Attribute Details
#api_version ⇒ Symbol, :v2
4270 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4270 required :api_version, const: :v2 |
#created ⇒ Time
ISO 8601 timestamp of when the event was emitted.
4276 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4276 required :created, Time |
#data ⇒ ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data
4281 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4281 required :data, -> { ModerationAPI::WebhookEvent::QueueItemRejected::Data } |
#id ⇒ String
Stable event ID. Use this to dedupe retries.
4265 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4265 required :id, String |
#type ⇒ Symbol, :"queue_item.rejected"
The event type.
4287 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4287 required :type, const: :"queue_item.rejected" |