Class: WhopSDK::Models::CourseLessonListResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CourseLessonListResponse
- Defined in:
- lib/whop_sdk/models/course_lesson_list_response.rb
Overview
Defined Under Namespace
Classes: Thumbnail
Instance Attribute Summary collapse
-
#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.
-
#order ⇒ Integer
The sort position of this lesson within its parent chapter, starting from zero.
-
#thumbnail ⇒ WhopSDK::Models::CourseLessonListResponse::Thumbnail?
The thumbnail image displayed on lesson cards and previews.
-
#title ⇒ String
The display name of the lesson shown to students.
-
#visibility ⇒ Symbol, WhopSDK::Models::LessonVisibilities
The visibility setting that controls whether this lesson appears to students.
Instance Method Summary collapse
-
#initialize(id:, content:, created_at:, days_from_course_start_until_unlock:, embed_id:, embed_type:, lesson_type:, order:, thumbnail:, title:, visibility:) ⇒ Object
constructor
Some parameter documentations has been truncated, see CourseLessonListResponse 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(id:, content:, created_at:, days_from_course_start_until_unlock:, embed_id:, embed_type:, lesson_type:, order:, thumbnail:, title:, visibility:) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::CourseLessonListResponse for more details.
An individual learning unit within a chapter, which can contain text, video, PDF, or assessment content.
|
|
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 78
|
Instance Attribute Details
#content ⇒ String?
The Markdown content body of the lesson. Null if the lesson has no text content.
17 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 17 required :content, String, nil?: true |
#created_at ⇒ Time
The datetime the lesson was created.
23 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 23 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.
30 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 30 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.
37 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 37 required :embed_id, String, nil?: true |
#embed_type ⇒ Symbol, ...
The type of embed for a lesson
43 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 43 required :embed_type, enum: -> { WhopSDK::EmbedType }, nil?: true |
#id ⇒ String
The unique identifier for the lesson.
11 |
# File 'lib/whop_sdk/models/course_lesson_list_response.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.
50 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 50 required :lesson_type, enum: -> { WhopSDK::LessonTypes } |
#order ⇒ Integer
The sort position of this lesson within its parent chapter, starting from zero.
56 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 56 required :order, Integer |
#thumbnail ⇒ WhopSDK::Models::CourseLessonListResponse::Thumbnail?
The thumbnail image displayed on lesson cards and previews. Null if no thumbnail has been uploaded.
63 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 63 required :thumbnail, -> { WhopSDK::Models::CourseLessonListResponse::Thumbnail }, nil?: true |
#title ⇒ String
The display name of the lesson shown to students. Maximum 120 characters.
69 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 69 required :title, String |
#visibility ⇒ Symbol, WhopSDK::Models::LessonVisibilities
The visibility setting that controls whether this lesson appears to students. One of: visible, hidden.
76 |
# File 'lib/whop_sdk/models/course_lesson_list_response.rb', line 76 required :visibility, enum: -> { WhopSDK::LessonVisibilities } |