Class: WhopSDK::Models::Lesson::AssessmentQuestion::Option
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Lesson::AssessmentQuestion::Option
- Defined in:
- lib/whop_sdk/models/lesson.rb,
sig/whop_sdk/models/lesson.rbs
Instance Attribute Summary collapse
-
#id ⇒ String
The unique identifier for the assessment question option.
-
#is_correct ⇒ Boolean?
Whether this option is a correct answer.
-
#option_text ⇒ String
The text of the answer option.
-
#order ⇒ Integer
The order of this option within the question.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
179 |
# File 'sig/whop_sdk/models/lesson.rbs', line 179
def initialize: (
|
Instance Attribute Details
#id ⇒ String
The unique identifier for the assessment question option.
267 |
# File 'lib/whop_sdk/models/lesson.rb', line 267 required :id, String |
#is_correct ⇒ Boolean?
Whether this option is a correct answer. Only visible to admins (users with courses:update permission)
274 |
# File 'lib/whop_sdk/models/lesson.rb', line 274 required :is_correct, WhopSDK::Internal::Type::Boolean, nil?: true |
#option_text ⇒ String
The text of the answer option
280 |
# File 'lib/whop_sdk/models/lesson.rb', line 280 required :option_text, String |
#order ⇒ Integer
The order of this option within the question
286 |
# File 'lib/whop_sdk/models/lesson.rb', line 286 required :order, Integer |
Instance Method Details
#to_hash ⇒ {
186 |
# File 'sig/whop_sdk/models/lesson.rbs', line 186
def to_hash: -> {
|