Class: WhopSDK::Models::MessageListResponse::PollVote
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::MessageListResponse::PollVote
- Defined in:
- lib/whop_sdk/models/message_list_response.rb,
sig/whop_sdk/models/message_list_response.rbs
Instance Attribute Summary collapse
-
#count ⇒ Integer
The number of users who reacted.
-
#option_id ⇒ String?
The reaction that was used.
Instance Method Summary collapse
-
#initialize ⇒ PollVote
constructor
A new instance of PollVote.
- #to_hash ⇒ { count: Integer, option_id: String? }
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 ⇒ PollVote
Returns a new instance of PollVote.
125 |
# File 'sig/whop_sdk/models/message_list_response.rbs', line 125
def initialize: (count: Integer, option_id: String?) -> void
|
Instance Attribute Details
#count ⇒ Integer
The number of users who reacted
187 |
# File 'lib/whop_sdk/models/message_list_response.rb', line 187 required :count, Integer |
#option_id ⇒ String?
The reaction that was used
193 |
# File 'lib/whop_sdk/models/message_list_response.rb', line 193 required :option_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ { count: Integer, option_id: String? }
127 |
# File 'sig/whop_sdk/models/message_list_response.rbs', line 127
def to_hash: -> { count: Integer, option_id: String? }
|