Class: WhopSDK::Models::Lesson::AssessmentQuestion::Option

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

Instance Attribute Summary collapse

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

#idString

The ID of the assessment question option

Returns:

  • (String)


246
# File 'lib/whop_sdk/models/lesson.rb', line 246

required :id, String

#is_correctBoolean?

Whether this option is a correct answer. Only visible to admins (users with courses:update permission)

Returns:

  • (Boolean, nil)


253
# File 'lib/whop_sdk/models/lesson.rb', line 253

required :is_correct, WhopSDK::Internal::Type::Boolean, nil?: true

#option_textString

The text of the answer option

Returns:

  • (String)


259
# File 'lib/whop_sdk/models/lesson.rb', line 259

required :option_text, String

#orderInteger

The order of this option within the question

Returns:

  • (Integer)


265
# File 'lib/whop_sdk/models/lesson.rb', line 265

required :order, Integer