Class: ModerationAPI::Models::WebhookEvent::QueueItemResolved::Data::Object::Item::Content::Video

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/moderation_api/models/webhook_event.rb,
sig/moderation_api/models/webhook_event.rbs

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

#initializeVideo

Returns a new instance of Video.

Parameters:

  • url: (String)
  • type: (:video)


2034
# File 'sig/moderation_api/models/webhook_event.rbs', line 2034

def initialize: (url: String, ?type: :video) -> void

Instance Attribute Details

#typeSymbol, :video

Parameters:

  • value (:video)

Returns:

  • (Symbol, :video)


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

required :type, const: :video

#urlString

A public URL of the video content

Parameters:

  • value (String)

Returns:

  • (String)


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

required :url, String

Instance Method Details

#to_hash{ type: :video, url: String }

Returns:

  • ({ type: :video, url: String })


2036
# File 'sig/moderation_api/models/webhook_event.rbs', line 2036

def to_hash: -> { type: :video, url: String }