Class: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion
- Defined in:
- lib/whop_sdk/models/course_lesson_update_params.rb
Defined Under Namespace
Modules: Image Classes: Option
Instance Attribute Summary collapse
-
#correct_answer ⇒ String
The correct answer for the question.
-
#id ⇒ String?
The ID of an existing question.
-
#image ⇒ WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, ...
Optional image attachment for the question.
-
#options ⇒ Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Option>?
The answer options for multiple choice/select questions.
-
#question_text ⇒ String
The text of the question.
-
#question_type ⇒ Symbol, WhopSDK::Models::AssessmentQuestionTypes
The type of the question.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see Image::AttachmentInputWithID 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: ) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID for more details.
Input for an attachment
|
|
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 186
|
Instance Attribute Details
#correct_answer ⇒ String
The correct answer for the question. Used for short answer questions
145 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 145 required :correct_answer, String |
#id ⇒ String?
The ID of an existing question. If provided, the question will be updated. If not provided, a new question will be created.
164 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 164 optional :id, String, nil?: true |
#image ⇒ WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, ...
Optional image attachment for the question
170 171 172 173 174 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 170 optional :image, union: -> { WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image }, nil?: true |
#options ⇒ Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Option>?
The answer options for multiple choice/select questions
180 181 182 183 184 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 180 optional :options, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option] }, nil?: true |
#question_text ⇒ String
The text of the question
151 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 151 required :question_text, String |
#question_type ⇒ Symbol, WhopSDK::Models::AssessmentQuestionTypes
The type of the question
157 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 157 required :question_type, enum: -> { WhopSDK::AssessmentQuestionTypes } |
Class Method Details
.variants ⇒ Array(WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID)
|
|
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 255
|