Class: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion

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

Defined Under Namespace

Modules: Image Classes: Option

Instance Attribute Summary collapse

Class Method 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

Some parameter documentations has been truncated, see WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID for more details.

Input for an attachment

Parameters:

  • id (String) (defaults to: )

    The ID of an existing attachment object. Use this when updating a resource and k



# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 210

Instance Attribute Details

#correct_answerString

The correct answer for the question. Used for short answer questions

Returns:

  • (String)


169
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 169

required :correct_answer, String

#idString?

The ID of an existing question. If provided, the question will be updated. If not provided, a new question will be created.

Returns:

  • (String, nil)


188
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 188

optional :id, String, nil?: true

#imageWhopSDK::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

#optionsArray<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_textString

The text of the question

Returns:

  • (String)


175
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 175

required :question_text, String

#question_typeSymbol, 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 }