Module: Knockapi::Models::Recipients::SlackChannelData::Connection

Extended by:
Internal::Type::Union
Defined in:
lib/knockapi/models/recipients/slack_channel_data.rb

Overview

A Slack connection, either an access token or an incoming webhook

Defined Under Namespace

Classes: SlackIncomingWebhookConnection, SlackTokenConnection

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(access_token: nil, channel_id: nil, user_id: nil) ⇒ Object

A Slack connection token.

Parameters:

  • access_token (String, nil) (defaults to: nil)

    A Slack access token.

  • channel_id (String, nil) (defaults to: nil)

    A Slack channel ID from the Slack provider.

  • user_id (String, nil) (defaults to: nil)

    A Slack user ID from the Slack provider.



# File 'lib/knockapi/models/recipients/slack_channel_data.rb', line 56