Class: Trycourier::Models::Preference
Defined Under Namespace
Modules: Source
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(status: , channel_preferences: nil, rules: nil, source: nil) ⇒ Object
|
# File 'lib/trycourier/models/preference.rb', line 28
|
Instance Attribute Details
14
15
16
|
# File 'lib/trycourier/models/preference.rb', line 14
optional :channel_preferences,
-> { Trycourier::Internal::Type::ArrayOf[Trycourier::ChannelPreference] },
nil?: true
|
21
|
# File 'lib/trycourier/models/preference.rb', line 21
optional :rules, -> { Trycourier::Internal::Type::ArrayOf[Trycourier::Rule] }, nil?: true
|
#source ⇒ Symbol, ...
26
|
# File 'lib/trycourier/models/preference.rb', line 26
optional :source, enum: -> { Trycourier::Preference::Source }, nil?: true
|
9
|
# File 'lib/trycourier/models/preference.rb', line 9
required :status, enum: -> { Trycourier::PreferenceStatus }
|