Class: WhopSDK::Models::Membership::CustomFieldResponse

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

#initializeCustomFieldResponse

Returns a new instance of CustomFieldResponse.

Parameters:

  • id: (String)
  • answer: (String)
  • question: (String)


156
# File 'sig/whop_sdk/models/membership.rbs', line 156

def initialize: (id: String, answer: String, question: String) -> void

Instance Attribute Details

#answerString

The response a user gave to the specific question or field.

Parameters:

  • value (String)

Returns:

  • (String)


256
# File 'lib/whop_sdk/models/membership.rb', line 256

required :answer, String

#idString

The unique identifier for the custom field response.

Parameters:

  • value (String)

Returns:

  • (String)


250
# File 'lib/whop_sdk/models/membership.rb', line 250

required :id, String

#questionString

The question asked by the custom field

Parameters:

  • value (String)

Returns:

  • (String)


262
# File 'lib/whop_sdk/models/membership.rb', line 262

required :question, String

Instance Method Details

#to_hash{ id: String, answer: String, question: String }

Returns:

  • ({ id: String, answer: String, question: String })


158
# File 'sig/whop_sdk/models/membership.rbs', line 158

def to_hash: -> { id: String, answer: String, question: String }