Class: Notiflows::Models::Users::SlackSettings
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Notiflows::Models::Users::SlackSettings
- Defined in:
- lib/notiflows/models/users/slack_settings.rb
Instance Attribute Summary collapse
-
#slack_channel_id ⇒ String?
Slack channel ID (starts with C).
-
#slack_user_id ⇒ String?
Slack user ID for direct messages (starts with U).
Instance Method Summary collapse
-
#initialize(slack_channel_id: nil, slack_user_id: nil) ⇒ Object
constructor
Settings for Slack notifications.
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.
|
|
# File 'lib/notiflows/models/users/slack_settings.rb', line 19
|
Instance Attribute Details
#slack_channel_id ⇒ String?
Slack channel ID (starts with C)
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)
17 |
# File 'lib/notiflows/models/users/slack_settings.rb', line 17 optional :slack_user_id, String |