Class: Trycourier::Models::NotificationPreferenceDetails
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Trycourier::Models::NotificationPreferenceDetails
- Defined in:
- lib/trycourier/models/notification_preference_details.rb
Instance Attribute Summary collapse
- #channel_preferences ⇒ Array<Trycourier::Models::ChannelPreference>?
- #rules ⇒ Array<Trycourier::Models::Rule>?
- #status ⇒ Symbol, Trycourier::Models::PreferenceStatus
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(status: , channel_preferences: nil, rules: nil) ⇒ Object
|
|
# File 'lib/trycourier/models/notification_preference_details.rb', line 23
|
Instance Attribute Details
#channel_preferences ⇒ Array<Trycourier::Models::ChannelPreference>?
14 15 16 |
# File 'lib/trycourier/models/notification_preference_details.rb', line 14 optional :channel_preferences, -> { Trycourier::Internal::Type::ArrayOf[Trycourier::ChannelPreference] }, nil?: true |
#rules ⇒ Array<Trycourier::Models::Rule>?
21 |
# File 'lib/trycourier/models/notification_preference_details.rb', line 21 optional :rules, -> { Trycourier::Internal::Type::ArrayOf[Trycourier::Rule] }, nil?: true |
#status ⇒ Symbol, Trycourier::Models::PreferenceStatus
9 |
# File 'lib/trycourier/models/notification_preference_details.rb', line 9 required :status, enum: -> { Trycourier::PreferenceStatus } |