Class: WhopSDK::Models::AdCreateParams::LeadForm::Question
Defined Under Namespace
Modules: Format, Type
Classes: Option
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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
|
# File 'lib/whop_sdk/models/ad_create_params.rb', line 511
|
Instance Attribute Details
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
|
#label ⇒ String?
498
|
# File 'lib/whop_sdk/models/ad_create_params.rb', line 498
optional :label, String
|
503
504
|
# File 'lib/whop_sdk/models/ad_create_params.rb', line 503
optional :options,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AdCreateParams::LeadForm::Question::Option] }
|
#type ⇒ Symbol, ...
509
|
# File 'lib/whop_sdk/models/ad_create_params.rb', line 509
optional :type, enum: -> { WhopSDK::AdCreateParams::LeadForm::Question::Type }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/whop_sdk/models/ad_create_params.rb', line 525
|
Instance Method Details
#to_hash ⇒ {
557
|
# File 'sig/whop_sdk/models/ad_create_params.rbs', line 557
def to_hash: -> {
|