Class: WhopSDK::Models::AdUpdateParams::LeadForm::Disclaimer::Checkbox

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/ad_update_params.rb,
sig/whop_sdk/models/ad_update_params.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

#initialize(body: nil, checkboxes: nil, title: nil) ⇒ Object

Optional custom consent disclaimer with checkboxes.

Parameters:



394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# File 'lib/whop_sdk/models/ad_update_params.rb', line 394

class Checkbox < WhopSDK::Internal::Type::BaseModel
  # @!attribute checked_by_default
  #
  #   @return [Boolean, nil]
  optional :checked_by_default, WhopSDK::Internal::Type::Boolean

  # @!attribute key
  #
  #   @return [String, nil]
  optional :key, String

  # @!attribute required
  #
  #   @return [Boolean, nil]
  optional :required, WhopSDK::Internal::Type::Boolean

  # @!attribute text
  #
  #   @return [String, nil]
  optional :text, String

  # @!method initialize(checked_by_default: nil, key: nil, required: nil, text: nil)
  #   @param checked_by_default [Boolean]
  #   @param key [String]
  #   @param required [Boolean]
  #   @param text [String]
end

Instance Attribute Details

#checked_by_defaultBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :checked_by_default, WhopSDK::Internal::Type::Boolean

#keyString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :key, String

#requiredBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :required, WhopSDK::Internal::Type::Boolean

#textString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :text, String

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {