Class: WhopSDK::Models::CourseLessonInteractionListItem

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

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

The lesson this interaction is for

Parameters:

  • id (String) (defaults to: )

    The ID of the lesson

  • title (String) (defaults to: )

    The title of the lesson



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

Instance Attribute Details

#completedBoolean

Whether the lesson has been completed by the user

Returns:

  • (Boolean)


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

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

#created_atTime

When the interaction was created

Returns:

  • (Time)


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

required :created_at, Time

#idString

The ID of the lesson interaction

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 this interaction is for



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 who interacted with the lesson



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

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