Class: WhopSDK::Models::ChatReactionCreatedWebhookEvent::Data::Audience

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

Overview

See Also:

  • WhopSDK::Models::ChatReactionCreatedWebhookEvent::Data#audience

Defined Under Namespace

Modules: Type

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

#initialize(type:, user_ids: nil) ⇒ Object

Parameters:



# File 'lib/whop_sdk/models/chat_reaction_created_webhook_event.rb', line 106

Instance Attribute Details

#typeSymbol, WhopSDK::Models::ChatReactionCreatedWebhookEvent::Data::Audience::Type

Parameters:

  • value (WhopSDK::Models::ChatReactionCreatedWebhookEvent::Data::Audience::type_)

Returns:



99
# File 'lib/whop_sdk/models/chat_reaction_created_webhook_event.rb', line 99

required :type, enum: -> { WhopSDK::ChatReactionCreatedWebhookEvent::Data::Audience::Type }

#user_idsArray<String>?

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


104
# File 'lib/whop_sdk/models/chat_reaction_created_webhook_event.rb', line 104

optional :user_ids, WhopSDK::Internal::Type::ArrayOf[String], nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


96
# File 'sig/whop_sdk/models/chat_reaction_created_webhook_event.rbs', line 96

def to_hash: -> {