Class: WhopSDK::Models::CourseLessonSubmitAssessmentResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CourseLessonSubmitAssessmentResponse
- Defined in:
- lib/whop_sdk/models/course_lesson_submit_assessment_response.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#created_at ⇒ Time
When the assessment was taken.
-
#id ⇒ String
The ID of the assessment result.
-
#lesson ⇒ WhopSDK::Models::CourseLessonSubmitAssessmentResponse::Lesson
The lesson this assessment result is for.
-
#result_correct ⇒ Integer
The number of correct answers.
-
#result_grade ⇒ Float
The grade achieved on the assessment.
-
#result_graded_questions ⇒ Hash{Symbol=>Object}
Array of graded questions with details.
-
#result_passing_grade ⇒ Boolean
Whether the user achieved a passing grade.
-
#result_question_count ⇒ Integer
The total number of questions in the assessment.
-
#score_percent ⇒ Float
The percentage score achieved on the assessment.
-
#updated_at ⇒ Time
When the assessment result was last updated.
-
#user ⇒ WhopSDK::Models::CourseLessonSubmitAssessmentResponse::User
The user who took the assessment.
Instance Method Summary collapse
-
#initialize(id: , title: ) ⇒ Object
constructor
The lesson this assessment result is for.
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 assessment result is for
|
|
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 73
|
Instance Attribute Details
#created_at ⇒ Time
When the assessment was taken
17 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 17 required :created_at, Time |
#id ⇒ String
The ID of the assessment result
11 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 11 required :id, String |
#lesson ⇒ WhopSDK::Models::CourseLessonSubmitAssessmentResponse::Lesson
The lesson this assessment result is for
23 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 23 required :lesson, -> { WhopSDK::Models::CourseLessonSubmitAssessmentResponse::Lesson } |
#result_correct ⇒ Integer
The number of correct answers
29 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 29 required :result_correct, Integer |
#result_grade ⇒ Float
The grade achieved on the assessment
35 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 35 required :result_grade, Float |
#result_graded_questions ⇒ Hash{Symbol=>Object}
Array of graded questions with details
41 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 41 required :result_graded_questions, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown] |
#result_passing_grade ⇒ Boolean
Whether the user achieved a passing grade
47 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 47 required :result_passing_grade, WhopSDK::Internal::Type::Boolean |
#result_question_count ⇒ Integer
The total number of questions in the assessment
53 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 53 required :result_question_count, Integer |
#score_percent ⇒ Float
The percentage score achieved on the assessment
59 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 59 required :score_percent, Float |
#updated_at ⇒ Time
When the assessment result was last updated
65 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 65 required :updated_at, Time |
#user ⇒ WhopSDK::Models::CourseLessonSubmitAssessmentResponse::User
The user who took the assessment
71 |
# File 'lib/whop_sdk/models/course_lesson_submit_assessment_response.rb', line 71 required :user, -> { WhopSDK::Models::CourseLessonSubmitAssessmentResponse::User } |