Class: WhopSDK::Models::MessageCreateParams::Poll::Option
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::MessageCreateParams::Poll::Option
- Defined in:
- lib/whop_sdk/models/message_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
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/whop_sdk/models/message_create_params.rb', line 87 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’)
92 |
# File 'lib/whop_sdk/models/message_create_params.rb', line 92 required :id, String |
#text ⇒ String
The text of the poll option
98 |
# File 'lib/whop_sdk/models/message_create_params.rb', line 98 required :text, String |