Class: Notiflows::Models::Users::SlackSettings

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/notiflows/models/users/slack_settings.rb

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(slack_channel_id: nil, slack_user_id: nil) ⇒ Object

Settings for Slack notifications. At least one of slack_channel_id or slack_user_id must be provided.

Parameters:

  • slack_channel_id (String) (defaults to: nil) —

    Slack channel ID (starts with C)

  • slack_user_id (String) (defaults to: nil) —

    Slack user ID for direct messages (starts with U)



# File 'lib/notiflows/models/users/slack_settings.rb', line 19


Instance Attribute Details

#slack_channel_id ⇒ String?

Slack channel ID (starts with C)

Returns:

  • (String, nil)


11
# File 'lib/notiflows/models/users/slack_settings.rb', line 11

optional :slack_channel_id, String

#slack_user_id ⇒ String?

Slack user ID for direct messages (starts with U)

Returns:

  • (String, nil)


17
# File 'lib/notiflows/models/users/slack_settings.rb', line 17

optional :slack_user_id, String