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

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

Instance Attribute 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

#initializeObject



179
# File 'sig/whop_sdk/models/lesson.rbs', line 179

def initialize: (

Instance Attribute Details

#idString

The unique identifier for the assessment question option.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#is_correctBoolean?

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

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


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

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

#option_textString

The text of the answer option

Parameters:

  • value (String)

Returns:

  • (String)


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

required :option_text, String

#orderInteger

The order of this option within the question

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :order, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


186
# File 'sig/whop_sdk/models/lesson.rbs', line 186

def to_hash: -> {