Class: Trycourier::Models::Users::TopicPreference
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(default_status: , status: , topic_id: , topic_name: , custom_routing: nil, has_custom_routing: nil) ⇒ Object
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 40
|
Instance Attribute Details
The Channels a user has chosen to receive notifications through for this topic
31
32
33
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 31
optional :custom_routing,
-> { Trycourier::Internal::Type::ArrayOf[enum: Trycourier::ChannelClassification] },
nil?: true
|
10
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 10
required :default_status, enum: -> { Trycourier::PreferenceStatus }
|
#has_custom_routing ⇒ Boolean?
38
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 38
optional :has_custom_routing, Trycourier::Internal::Type::Boolean, nil?: true
|
15
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 15
required :status, enum: -> { Trycourier::PreferenceStatus }
|
#topic_id ⇒ String
20
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 20
required :topic_id, String
|
#topic_name ⇒ String
25
|
# File 'lib/trycourier/models/users/topic_preference.rb', line 25
required :topic_name, String
|