Class: WhopSDK::Models::ForumPostCreateParams::Poll::Option

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/forum_post_create_params.rb

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(id: , text: ) ⇒ Object

Input type for a single poll option

Parameters:

  • id (String) (defaults to: )

    Sequential ID for the poll option (starting from ‘1’)

  • text (String) (defaults to: )

    The text of the poll option



143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/whop_sdk/models/forum_post_create_params.rb', line 143

class Option < WhopSDK::Internal::Type::BaseModel
  # @!attribute id
  #   Sequential ID for the poll option (starting from '1')
  #
  #   @return [String]
  required :id, String

  # @!attribute text
  #   The text of the poll option
  #
  #   @return [String]
  required :text, String

  # @!method initialize(id:, text:)
  #   Input type for a single poll option
  #
  #   @param id [String] Sequential ID for the poll option (starting from '1')
  #
  #   @param text [String] The text of the poll option
end

Instance Attribute Details

#idString

Sequential ID for the poll option (starting from ‘1’)

Returns:

  • (String)


148
# File 'lib/whop_sdk/models/forum_post_create_params.rb', line 148

required :id, String

#textString

The text of the poll option

Returns:

  • (String)


154
# File 'lib/whop_sdk/models/forum_post_create_params.rb', line 154

required :text, String