Class: WhopSDK::Models::ChatMessageCreatedWebhookEvent::Data::Channel

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

Overview

See Also:

  • WhopSDK::Models::ChatMessageCreatedWebhookEvent::Data#channel

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(id:, type:, experience_id: nil) ⇒ Object

Parameters:



# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 131

Instance Attribute Details

#experience_idString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


129
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 129

optional :experience_id, String, nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


119
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 119

required :id, String

#typeSymbol, WhopSDK::Models::ChatMessageCreatedWebhookEvent::Data::Channel::Type

Parameters:

  • value (WhopSDK::Models::ChatMessageCreatedWebhookEvent::Data::Channel::type_)

Returns:



124
# File 'lib/whop_sdk/models/chat_message_created_webhook_event.rb', line 124

required :type, enum: -> { WhopSDK::ChatMessageCreatedWebhookEvent::Data::Channel::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


128
# File 'sig/whop_sdk/models/chat_message_created_webhook_event.rbs', line 128

def to_hash: -> {