Class: ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Item::Content::Video
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Item::Content::Video
- Defined in:
- lib/moderation_api/models/webhook_event.rb,
sig/moderation_api/models/webhook_event.rbs
Instance Attribute Summary collapse
- #type ⇒ Symbol, :video
-
#url ⇒ String
A public URL of the video content.
Instance Method Summary collapse
-
#initialize ⇒ Video
constructor
A new instance of Video.
- #to_hash ⇒ { type: :video, url: String }
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 ⇒ Video
Returns a new instance of Video.
4716 |
# File 'sig/moderation_api/models/webhook_event.rbs', line 4716
def initialize: (url: String, ?type: :video) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :video
6211 |
# File 'lib/moderation_api/models/webhook_event.rb', line 6211 required :type, const: :video |
#url ⇒ String
A public URL of the video content
6217 |
# File 'lib/moderation_api/models/webhook_event.rb', line 6217 required :url, String |
Instance Method Details
#to_hash ⇒ { type: :video, url: String }
4718 |
# File 'sig/moderation_api/models/webhook_event.rbs', line 4718
def to_hash: -> { type: :video, url: String }
|