Class: WhopSDK::Models::Lesson
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Lesson
- Defined in:
- lib/whop_sdk/models/lesson.rb
Overview
Defined Under Namespace
Classes: AssessmentQuestion, Attachment, MainPdf, Thumbnail, VideoAsset
Instance Attribute Summary collapse
-
#assessment_questions ⇒ Array<WhopSDK::Models::Lesson::AssessmentQuestion>
The list of questions for quiz or knowledge check lessons.
-
#attachments ⇒ Array<WhopSDK::Models::Lesson::Attachment>
All supplementary files attached to this lesson returned as a flat array rather than a paginated connection.
-
#content ⇒ String?
The Markdown content body of the lesson.
-
#created_at ⇒ Time
The datetime the lesson was created.
-
#days_from_course_start_until_unlock ⇒ Integer?
The number of days after a student starts the course before this lesson becomes accessible.
-
#embed_id ⇒ String?
The external video identifier for embedded video lessons, such as a YouTube video ID or Loom share ID.
-
#embed_type ⇒ Symbol, ...
The type of embed for a lesson.
-
#id ⇒ String
The unique identifier for the lesson.
-
#lesson_type ⇒ Symbol, WhopSDK::Models::LessonTypes
The content format of this lesson.
-
#main_pdf ⇒ WhopSDK::Models::Lesson::MainPdf?
The primary PDF document for PDF-type lessons.
-
#order ⇒ Integer
The sort position of this lesson within its parent chapter, starting from zero.
-
#thumbnail ⇒ WhopSDK::Models::Lesson::Thumbnail?
The thumbnail image displayed on lesson cards and previews.
-
#title ⇒ String
The display name of the lesson shown to students.
-
#video_asset ⇒ WhopSDK::Models::Lesson::VideoAsset?
The Mux video asset for video-type lessons, used for streaming playback.
-
#visibility ⇒ Symbol, WhopSDK::Models::LessonVisibilities
The visibility setting that controls whether this lesson appears to students.
Instance Method Summary collapse
-
#initialize(url:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Thumbnail for more details.
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(url:) ⇒ Object
Some parameter documentations has been truncated, see Thumbnail for more details.
The thumbnail image displayed on lesson cards and previews. Null if no thumbnail has been uploaded.
|
|
# File 'lib/whop_sdk/models/lesson.rb', line 288
|
Instance Attribute Details
#assessment_questions ⇒ Array<WhopSDK::Models::Lesson::AssessmentQuestion>
The list of questions for quiz or knowledge check lessons. Empty for non-assessment lesson types.
18 19 |
# File 'lib/whop_sdk/models/lesson.rb', line 18 required :assessment_questions, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Lesson::AssessmentQuestion] } |
#attachments ⇒ Array<WhopSDK::Models::Lesson::Attachment>
All supplementary files attached to this lesson returned as a flat array rather than a paginated connection.
26 |
# File 'lib/whop_sdk/models/lesson.rb', line 26 required :attachments, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Lesson::Attachment] } |
#content ⇒ String?
The Markdown content body of the lesson. Null if the lesson has no text content.
32 |
# File 'lib/whop_sdk/models/lesson.rb', line 32 required :content, String, nil?: true |
#created_at ⇒ Time
The datetime the lesson was created.
38 |
# File 'lib/whop_sdk/models/lesson.rb', line 38 required :created_at, Time |
#days_from_course_start_until_unlock ⇒ Integer?
The number of days after a student starts the course before this lesson becomes accessible. Null if the lesson is available immediately.
45 |
# File 'lib/whop_sdk/models/lesson.rb', line 45 required :days_from_course_start_until_unlock, Integer, nil?: true |
#embed_id ⇒ String?
The external video identifier for embedded video lessons, such as a YouTube video ID or Loom share ID. Null if the lesson has no embed.
52 |
# File 'lib/whop_sdk/models/lesson.rb', line 52 required :embed_id, String, nil?: true |
#embed_type ⇒ Symbol, ...
The type of embed for a lesson
58 |
# File 'lib/whop_sdk/models/lesson.rb', line 58 required :embed_type, enum: -> { WhopSDK::EmbedType }, nil?: true |
#id ⇒ String
The unique identifier for the lesson.
11 |
# File 'lib/whop_sdk/models/lesson.rb', line 11 required :id, String |
#lesson_type ⇒ Symbol, WhopSDK::Models::LessonTypes
The content format of this lesson. One of: text, video, pdf, multi, quiz, knowledge_check.
65 |
# File 'lib/whop_sdk/models/lesson.rb', line 65 required :lesson_type, enum: -> { WhopSDK::LessonTypes } |
#main_pdf ⇒ WhopSDK::Models::Lesson::MainPdf?
The primary PDF document for PDF-type lessons. Null if this lesson is not a PDF lesson or no PDF has been uploaded.
72 |
# File 'lib/whop_sdk/models/lesson.rb', line 72 required :main_pdf, -> { WhopSDK::Lesson::MainPdf }, nil?: true |
#order ⇒ Integer
The sort position of this lesson within its parent chapter, starting from zero.
78 |
# File 'lib/whop_sdk/models/lesson.rb', line 78 required :order, Integer |
#thumbnail ⇒ WhopSDK::Models::Lesson::Thumbnail?
The thumbnail image displayed on lesson cards and previews. Null if no thumbnail has been uploaded.
85 |
# File 'lib/whop_sdk/models/lesson.rb', line 85 required :thumbnail, -> { WhopSDK::Lesson::Thumbnail }, nil?: true |
#title ⇒ String
The display name of the lesson shown to students. Maximum 120 characters.
91 |
# File 'lib/whop_sdk/models/lesson.rb', line 91 required :title, String |
#video_asset ⇒ WhopSDK::Models::Lesson::VideoAsset?
The Mux video asset for video-type lessons, used for streaming playback. Null if this lesson has no hosted video.
98 |
# File 'lib/whop_sdk/models/lesson.rb', line 98 required :video_asset, -> { WhopSDK::Lesson::VideoAsset }, nil?: true |
#visibility ⇒ Symbol, WhopSDK::Models::LessonVisibilities
The visibility setting that controls whether this lesson appears to students. One of: visible, hidden.
105 |
# File 'lib/whop_sdk/models/lesson.rb', line 105 required :visibility, enum: -> { WhopSDK::LessonVisibilities } |