Class: WhopSDK::Models::ForumPostCreateParams::Poll::Option
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::ForumPostCreateParams::Poll::Option
- Defined in:
- lib/whop_sdk/models/forum_post_create_params.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Sequential ID for the poll option (starting from ‘1’).
-
#text ⇒ String
The text of the poll option.
Instance Method Summary collapse
-
#initialize(id: , text: ) ⇒ Object
constructor
Input type for a single poll option.
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
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/whop_sdk/models/forum_post_create_params.rb', line 175 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
#id ⇒ String
Sequential ID for the poll option (starting from ‘1’)
180 |
# File 'lib/whop_sdk/models/forum_post_create_params.rb', line 180 required :id, String |
#text ⇒ String
The text of the poll option
186 |
# File 'lib/whop_sdk/models/forum_post_create_params.rb', line 186 required :text, String |