Class: WhopSDK::Models::Message::Poll

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/message.rb,
sig/whop_sdk/models/message.rbs

Overview

See Also:

  • WhopSDK::Models::Message#poll

Defined Under Namespace

Classes: Option

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

#initializeObject



94
# File 'sig/whop_sdk/models/message.rbs', line 94

def initialize: (

Instance Attribute Details

#optionsArray<WhopSDK::Models::Message::Poll::Option>?

The options for the poll

Parameters:

  • value (::Array[WhopSDK::Message::Poll::Option], nil)

Returns:



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

required :options, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Message::Poll::Option] }, nil?: true

Instance Method Details

#to_hash{ options: ::Array[WhopSDK::Message::Poll::Option]? }

Returns:

  • ({ options: ::Array[WhopSDK::Message::Poll::Option]? })


98
# File 'sig/whop_sdk/models/message.rbs', line 98

def to_hash: -> { options: ::Array[WhopSDK::Message::Poll::Option]? }