Class: ModerationAPI::Models::WebhookEvent::QueueItemResolved

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/webhook_event.rb

Defined Under Namespace

Classes: Data

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(id:, created:, data:, api_version: :v2, type: :"queue_item.resolved") ⇒ Object

Parameters:

  • id (String)

    Stable event ID. Use this to dedupe retries.

  • created (Time)

    ISO 8601 timestamp of when the event was emitted.

  • data (ModerationAPI::Models::WebhookEvent::QueueItemResolved::Data)
  • api_version (Symbol, :v2) (defaults to: :v2)
  • type (Symbol, :"queue_item.resolved") (defaults to: :"queue_item.resolved")

    The event type.



# File 'lib/moderation_api/models/webhook_event.rb', line 2374

Instance Attribute Details

#api_versionSymbol, :v2

Returns:

  • (Symbol, :v2)


2355
# File 'lib/moderation_api/models/webhook_event.rb', line 2355

required :api_version, const: :v2

#createdTime

ISO 8601 timestamp of when the event was emitted.

Returns:

  • (Time)


2361
# File 'lib/moderation_api/models/webhook_event.rb', line 2361

required :created, Time

#dataModerationAPI::Models::WebhookEvent::QueueItemResolved::Data



2366
# File 'lib/moderation_api/models/webhook_event.rb', line 2366

required :data, -> { ModerationAPI::WebhookEvent::QueueItemResolved::Data }

#idString

Stable event ID. Use this to dedupe retries.

Returns:

  • (String)


2350
# File 'lib/moderation_api/models/webhook_event.rb', line 2350

required :id, String

#typeSymbol, :"queue_item.resolved"

The event type.

Returns:

  • (Symbol, :"queue_item.resolved")


2372
# File 'lib/moderation_api/models/webhook_event.rb', line 2372

required :type, const: :"queue_item.resolved"