Class: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Option
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Option
- Defined in:
- lib/whop_sdk/models/course_lesson_update_params.rb
Instance Attribute Summary collapse
-
#id ⇒ String?
The ID of an existing option.
-
#is_correct ⇒ Boolean
Whether this option is a correct answer.
-
#option_text ⇒ String
The text of the answer option.
Method Summary
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from WhopSDK::Internal::Type::BaseModel
Instance Attribute Details
#id ⇒ String?
The ID of an existing option. If provided, the option will be updated. If not provided, a new option will be created.
204 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 204 optional :id, String, nil?: true |
#is_correct ⇒ Boolean
Whether this option is a correct answer
191 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 191 required :is_correct, WhopSDK::Internal::Type::Boolean |
#option_text ⇒ String
The text of the answer option
197 |
# File 'lib/whop_sdk/models/course_lesson_update_params.rb', line 197 required :option_text, String |