Class: WhopSDK::Models::Course
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Course
- Defined in:
- lib/whop_sdk/models/course.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#certificate_after_completion_enabled ⇒ Boolean?
Whether students receive a PDF certificate after completing all lessons in this course.
-
#chapters ⇒ Array<WhopSDK::Models::Course::Chapter>
An ordered list of all chapters in this course, sorted by their display position.
-
#cover_image ⇒ String?
The URL of the course cover image shown on preview cards.
-
#created_at ⇒ Time
The datetime the course was created.
-
#description ⇒ String?
A brief summary of the course content and objectives.
-
#id ⇒ String
The unique identifier for the course.
-
#language ⇒ Symbol, WhopSDK::Models::Languages
The spoken language of the video content, used to generate accurate closed captions.
-
#order ⇒ String
The sort position of this course within its parent experience, as a decimal for flexible ordering.
-
#require_completing_lessons_in_order ⇒ Boolean
Whether students must complete each lesson sequentially before advancing to the next one.
-
#tagline ⇒ String?
A short marketing tagline displayed beneath the course title.
-
#thumbnail ⇒ WhopSDK::Models::Course::Thumbnail?
The thumbnail image displayed on course cards and previews.
-
#title ⇒ String?
The display name of the course shown to students.
-
#updated_at ⇒ Time
The datetime the course was last updated.
-
#visibility ⇒ Symbol, WhopSDK::Models::CourseVisibilities
The visibility setting that controls whether this course appears to students.
Instance Method Summary collapse
-
#initialize(duration_seconds:, signed_playback_id:, signed_thumbnail_playback_token:) ⇒ Object
constructor
The Mux video asset for video-type lessons, used for streaming playback.
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(duration_seconds:, signed_playback_id:, signed_thumbnail_playback_token:) ⇒ Object
The Mux video asset for video-type lessons, used for streaming playback. Null if this lesson has no hosted video.
|
|
# File 'lib/whop_sdk/models/course.rb', line 276
|
Instance Attribute Details
#certificate_after_completion_enabled ⇒ Boolean?
Whether students receive a PDF certificate after completing all lessons in this course. Null if the setting has not been configured.
18 |
# File 'lib/whop_sdk/models/course.rb', line 18 required :certificate_after_completion_enabled, WhopSDK::Internal::Type::Boolean, nil?: true |
#chapters ⇒ Array<WhopSDK::Models::Course::Chapter>
An ordered list of all chapters in this course, sorted by their display position.
25 |
# File 'lib/whop_sdk/models/course.rb', line 25 required :chapters, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Course::Chapter] } |
#cover_image ⇒ String?
The URL of the course cover image shown on preview cards. Null if no cover image has been uploaded.
32 |
# File 'lib/whop_sdk/models/course.rb', line 32 required :cover_image, String, nil?: true |
#created_at ⇒ Time
The datetime the course was created.
38 |
# File 'lib/whop_sdk/models/course.rb', line 38 required :created_at, Time |
#description ⇒ String?
A brief summary of the course content and objectives. Null if no description has been set.
45 |
# File 'lib/whop_sdk/models/course.rb', line 45 required :description, String, nil?: true |
#id ⇒ String
The unique identifier for the course.
11 |
# File 'lib/whop_sdk/models/course.rb', line 11 required :id, String |
#language ⇒ Symbol, WhopSDK::Models::Languages
The spoken language of the video content, used to generate accurate closed captions. One of: en, es, it, pt, de, fr, pl, ru, nl, ca, tr, sv, uk, no, fi, sk, el, cs, hr, da, ro, bg.
53 |
# File 'lib/whop_sdk/models/course.rb', line 53 required :language, enum: -> { WhopSDK::Languages } |
#order ⇒ String
The sort position of this course within its parent experience, as a decimal for flexible ordering.
60 |
# File 'lib/whop_sdk/models/course.rb', line 60 required :order, String |
#require_completing_lessons_in_order ⇒ Boolean
Whether students must complete each lesson sequentially before advancing to the next one.
67 |
# File 'lib/whop_sdk/models/course.rb', line 67 required :require_completing_lessons_in_order, WhopSDK::Internal::Type::Boolean |
#tagline ⇒ String?
A short marketing tagline displayed beneath the course title. Null if no tagline has been set.
74 |
# File 'lib/whop_sdk/models/course.rb', line 74 required :tagline, String, nil?: true |
#thumbnail ⇒ WhopSDK::Models::Course::Thumbnail?
The thumbnail image displayed on course cards and previews. Null if no thumbnail has been uploaded.
81 |
# File 'lib/whop_sdk/models/course.rb', line 81 required :thumbnail, -> { WhopSDK::Course::Thumbnail }, nil?: true |
#title ⇒ String?
The display name of the course shown to students. Null if no title has been set.
87 |
# File 'lib/whop_sdk/models/course.rb', line 87 required :title, String, nil?: true |
#updated_at ⇒ Time
The datetime the course was last updated.
93 |
# File 'lib/whop_sdk/models/course.rb', line 93 required :updated_at, Time |
#visibility ⇒ Symbol, WhopSDK::Models::CourseVisibilities
The visibility setting that controls whether this course appears to students. One of: visible, hidden.
100 |
# File 'lib/whop_sdk/models/course.rb', line 100 required :visibility, enum: -> { WhopSDK::CourseVisibilities } |