Class: WhopSDK::Models::AdCreateParams::LeadForm::Question

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/ad_create_params.rb,
sig/whop_sdk/models/ad_create_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_create_params.rb', line 511

Instance Attribute Details

#format_Symbol, ...



489
490
491
492
493
# File 'lib/whop_sdk/models/ad_create_params.rb', line 489

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

#labelString?

Parameters:

  • (String)

Returns:

  • (String, nil)


498
# File 'lib/whop_sdk/models/ad_create_params.rb', line 498

optional :label, String

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



503
504
# File 'lib/whop_sdk/models/ad_create_params.rb', line 503

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

#typeSymbol, ...



509
# File 'lib/whop_sdk/models/ad_create_params.rb', line 509

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/ad_create_params.rb', line 525

Instance Method Details

#to_hash{

Returns:

  • ({)


557
# File 'sig/whop_sdk/models/ad_create_params.rbs', line 557

def to_hash: -> {