Class: Knockapi::Models::Recipients::PreferenceSetChannelTypes
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Recipients::PreferenceSetChannelTypes
- Defined in:
- lib/knockapi/models/recipients/preference_set_channel_types.rb
Defined Under Namespace
Modules: Chat, Email, HTTP, InAppFeed, Push, SMS
Instance Attribute Summary collapse
-
#chat ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
-
#email ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
-
#http ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
-
#in_app_feed ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
-
#push ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
-
#sms ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(chat: nil, email: nil, http: nil, in_app_feed: nil, push: nil, sms: nil) ⇒ Object
constructor
Channel type preferences.
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(chat: nil, email: nil, http: nil, in_app_feed: nil, push: nil, sms: nil) ⇒ Object
Channel type preferences.
|
|
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 43
|
Instance Attribute Details
#chat ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
11 |
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 11 optional :chat, union: -> { Knockapi::Recipients::PreferenceSetChannelTypes::Chat } |
#email ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
17 |
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 17 optional :email, union: -> { Knockapi::Recipients::PreferenceSetChannelTypes::Email } |
#http ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
23 |
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 23 optional :http, union: -> { Knockapi::Recipients::PreferenceSetChannelTypes::HTTP } |
#in_app_feed ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
29 |
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 29 optional :in_app_feed, union: -> { Knockapi::Recipients::PreferenceSetChannelTypes::InAppFeed } |
#push ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
35 |
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 35 optional :push, union: -> { Knockapi::Recipients::PreferenceSetChannelTypes::Push } |
#sms ⇒ Boolean, ...
Whether the channel type is enabled for the preference set.
41 |
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 41 optional :sms, union: -> { Knockapi::Recipients::PreferenceSetChannelTypes::SMS } |
Class Method Details
.variants ⇒ Array(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelTypeSetting)
|
|
# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 69
|