Class: WhopSDK::Models::MessageListResponse::Poll::Option
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::MessageListResponse::Poll::Option
- Defined in:
- lib/whop_sdk/models/message_list_response.rb
Instance Attribute Summary collapse
-
#id ⇒ String
The ID of the poll option.
-
#text ⇒ String
The text of the poll option.
Instance Method Summary collapse
-
#initialize(options: ) ⇒ Object
constructor
The poll for this message.
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(options: ) ⇒ Object
The poll for this message
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/whop_sdk/models/message_list_response.rb', line 131 class Option < WhopSDK::Internal::Type::BaseModel # @!attribute id # The ID of the poll option # # @return [String] required :id, String # @!attribute text # The text of the poll option # # @return [String] required :text, String # @!method initialize(id:, text:) # Represents a single poll option # # @param id [String] The ID of the poll option # # @param text [String] The text of the poll option end |
Instance Attribute Details
#id ⇒ String
The ID of the poll option
136 |
# File 'lib/whop_sdk/models/message_list_response.rb', line 136 required :id, String |
#text ⇒ String
The text of the poll option
142 |
# File 'lib/whop_sdk/models/message_list_response.rb', line 142 required :text, String |