Class: Notiflows::Models::Users::UsersPreferences::Notiflow

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/notiflows/models/users/preferences.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(channel_types: nil, enabled: nil, name: nil) ⇒ Object

Parameters:

  • channel_types (Hash{Symbol=>Boolean}) (defaults to: nil) —

    Channel-specific overrides for this notiflow

  • enabled (Boolean) (defaults to: nil) —

    Whether this notiflow is enabled for the user

  • name (String) (defaults to: nil) —

    Notiflow name (read-only, for display)



# File 'lib/notiflows/models/users/preferences.rb', line 106

Instance Attribute Details

#channel_types ⇒ Hash{Symbol=>Boolean}?

Channel-specific overrides for this notiflow

Returns:

  • (Hash{Symbol=>Boolean}, nil)


92
# File 'lib/notiflows/models/users/preferences.rb', line 92

optional :channel_types, ::Notiflows::Internal::Type::HashOf[::Notiflows::Internal::Type::Boolean]

#enabled ⇒ Boolean?

Whether this notiflow is enabled for the user

Returns:

  • (Boolean, nil)


98
# File 'lib/notiflows/models/users/preferences.rb', line 98

optional :enabled, ::Notiflows::Internal::Type::Boolean

#name ⇒ String?

Notiflow name (read-only, for display)

Returns:

  • (String, nil)


104
# File 'lib/notiflows/models/users/preferences.rb', line 104

optional :name, String