Class: Knockapi::Models::Recipients::DiscordChannelData::Connection::DiscordChannelConnection

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/recipients/discord_channel_data.rb,
sig/knockapi/models/recipients/discord_channel_data.rbs

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

#initializeDiscordChannelConnection

Returns a new instance of DiscordChannelConnection.

Parameters:

  • channel_id: (String)


32
# File 'sig/knockapi/models/recipients/discord_channel_data.rbs', line 32

def initialize: (channel_id: String) -> void

Instance Attribute Details

#channel_idString

Discord channel ID.

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/knockapi/models/recipients/discord_channel_data.rb', line 35

required :channel_id, String

Instance Method Details

#to_hash{ channel_id: String }

Returns:

  • ({ channel_id: String })


34
# File 'sig/knockapi/models/recipients/discord_channel_data.rbs', line 34

def to_hash: -> { channel_id: String }