Class: WhopSDK::Models::Lesson::VideoAsset

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/lesson.rb

Overview

See Also:

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: , asset_id: , playback_id: ) ⇒ Object

The associated Mux asset for video lessons

Parameters:

  • id (String) (defaults to: )

    The ID of the Mux asset

  • asset_id (String, nil) (defaults to: )

    The Mux-provided ID of the asset

  • playback_id (String, nil) (defaults to: )

    The public playback ID of the Mux asset



# File 'lib/whop_sdk/models/lesson.rb', line 354

Instance Attribute Details

#asset_idString?

The Mux-provided ID of the asset

Returns:

  • (String, nil)


346
# File 'lib/whop_sdk/models/lesson.rb', line 346

required :asset_id, String, nil?: true

#idString

The ID of the Mux asset

Returns:

  • (String)


340
# File 'lib/whop_sdk/models/lesson.rb', line 340

required :id, String

#playback_idString?

The public playback ID of the Mux asset

Returns:

  • (String, nil)


352
# File 'lib/whop_sdk/models/lesson.rb', line 352

required :playback_id, String, nil?: true