Class: WhopSDK::Models::CourseLessonInteractionListItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/course_lesson_interaction_list_item.rb,
sig/whop_sdk/models/course_lesson_interaction_list_item.rbs

Defined Under Namespace

Classes: Lesson, User

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

The parent chapter that contains this lesson.

Parameters:

  • id (String)

    The unique identifier for the chapter.



# File 'lib/whop_sdk/models/course_lesson_interaction_list_item.rb', line 36

Instance Attribute Details

#completedBoolean

Whether the user has finished this lesson.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


16
# File 'lib/whop_sdk/models/course_lesson_interaction_list_item.rb', line 16

required :completed, WhopSDK::Internal::Type::Boolean

#created_atTime

The datetime the lesson interaction was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


22
# File 'lib/whop_sdk/models/course_lesson_interaction_list_item.rb', line 22

required :created_at, Time

#idString

The unique identifier for the lesson interaction.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/whop_sdk/models/course_lesson_interaction_list_item.rb', line 10

required :id, String

#lessonWhopSDK::Models::CourseLessonInteractionListItem::Lesson

The lesson that this progress record belongs to.

Parameters:

  • value (WhopSDK::CourseLessonInteractionListItem::Lesson)

Returns:



28
# File 'lib/whop_sdk/models/course_lesson_interaction_list_item.rb', line 28

required :lesson, -> { WhopSDK::CourseLessonInteractionListItem::Lesson }

#userWhopSDK::Models::CourseLessonInteractionListItem::User

The user whose progress is being tracked.

Parameters:

  • value (WhopSDK::CourseLessonInteractionListItem::User)

Returns:



34
# File 'lib/whop_sdk/models/course_lesson_interaction_list_item.rb', line 34

required :user, -> { WhopSDK::CourseLessonInteractionListItem::User }

Instance Method Details

#to_hash{

Returns:

  • ({)


31
# File 'sig/whop_sdk/models/course_lesson_interaction_list_item.rbs', line 31

def to_hash: -> {