Class: Knockapi::Models::Recipients::PreferenceSetChannelTypes

Inherits:
Internal::Type::BaseModel show all
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

Class Method 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(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

#chatBoolean, ...

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 }

#emailBoolean, ...

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 }

#httpBoolean, ...

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_feedBoolean, ...

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 }

#pushBoolean, ...

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 }

#smsBoolean, ...

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

.variantsArray(Boolean, Knockapi::Models::Recipients::PreferenceSetChannelTypeSetting)



# File 'lib/knockapi/models/recipients/preference_set_channel_types.rb', line 69