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 210
|
Instance Attribute Details
#correct_answer ⇒ String
The correct answer for the question. Used for short answer questions
169 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 169 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.
188 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 188 optional :id, String, nil?: true |
#image ⇒ WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, ...
Optional image attachment for the question
194 195 196 197 198 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 194 optional :image, union: -> { WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image }, nil?: true |
#options ⇒ Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Option>?
The answer options for multiple choice/select questions
204 205 206 207 208 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 204 optional :options, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option] }, nil?: true |
#question_text ⇒ String
The text of the question
175 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 175 required :question_text, String |
#question_type ⇒ Symbol, WhopSDK::Models::AssessmentQuestionTypes
The type of the question
181 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 181 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 279
|