Class: WhopSDK::Models::AdUpdateParams::LeadForm::Question

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

Defined Under Namespace

Modules: Format, Type 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(format_: nil, label: nil, options: nil, type: nil) ⇒ Object

Parameters:



# File 'lib/whop_sdk/models/ad_update_params.rb', line 501

Instance Attribute Details

#format_Symbol, ...



479
480
481
482
483
# File 'lib/whop_sdk/models/ad_update_params.rb', line 479

optional :format_,
enum: -> {
  WhopSDK::AdUpdateParams::LeadForm::Question::Format
},
api_name: :format

#labelString?

Parameters:

  • (String)

Returns:

  • (String, nil)


488
# File 'lib/whop_sdk/models/ad_update_params.rb', line 488

optional :label, String

#optionsArray<WhopSDK::Models::AdUpdateParams::LeadForm::Question::Option>?



493
494
# File 'lib/whop_sdk/models/ad_update_params.rb', line 493

optional :options,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AdUpdateParams::LeadForm::Question::Option] }

#typeSymbol, ...



499
# File 'lib/whop_sdk/models/ad_update_params.rb', line 499

optional :type, enum: -> { WhopSDK::AdUpdateParams::LeadForm::Question::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/ad_update_params.rb', line 515

Instance Method Details

#to_hash{

Returns:

  • ({)


548
# File 'sig/whop_sdk/models/ad_update_params.rbs', line 548

def to_hash: -> {