Class: Trycourier::Models::TopicPreference

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/topic_preference.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(default_status: , status: , topic_id: , topic_name: , custom_routing: nil, has_custom_routing: nil) ⇒ Object

Parameters:



# File 'lib/trycourier/models/topic_preference.rb', line 39

Instance Attribute Details

#custom_routingArray<Symbol, Trycourier::Models::ChannelClassification>?

The Channels a user has chosen to receive notifications through for this topic

Returns:



30
31
32
# File 'lib/trycourier/models/topic_preference.rb', line 30

optional :custom_routing,
-> { Trycourier::Internal::Type::ArrayOf[enum: Trycourier::ChannelClassification] },
nil?: true

#default_statusSymbol, Trycourier::Models::PreferenceStatus



9
# File 'lib/trycourier/models/topic_preference.rb', line 9

required :default_status, enum: -> { Trycourier::PreferenceStatus }

#has_custom_routingBoolean?

Returns:

  • (Boolean, nil)


37
# File 'lib/trycourier/models/topic_preference.rb', line 37

optional :has_custom_routing, Trycourier::Internal::Type::Boolean, nil?: true

#statusSymbol, Trycourier::Models::PreferenceStatus



14
# File 'lib/trycourier/models/topic_preference.rb', line 14

required :status, enum: -> { Trycourier::PreferenceStatus }

#topic_idString

Returns:

  • (String)


19
# File 'lib/trycourier/models/topic_preference.rb', line 19

required :topic_id, String

#topic_nameString

Returns:

  • (String)


24
# File 'lib/trycourier/models/topic_preference.rb', line 24

required :topic_name, String