Class: Collavre::IntegrationSettings::KeyDefinition
- Inherits:
-
Struct
- Object
- Struct
- Collavre::IntegrationSettings::KeyDefinition
- Defined in:
- lib/collavre/integration_settings/key_definition.rb
Overview
Value object describing a registered integration setting key.
Instance Attribute Summary collapse
-
#admin_visible ⇒ Boolean
readonly
When false the key is resolvable but hidden from the admin UI.
-
#category ⇒ String
readonly
Grouping for the admin UI (e.g. “slack”, “google_oauth”).
-
#default ⇒ String?
readonly
Static default returned when neither DB nor ENV has a value.
-
#env_var ⇒ String
readonly
Name of the ENV variable used as fallback / seed source.
-
#input_type ⇒ Symbol
readonly
Admin UI input widget: :string (default, single line) or :textarea.
-
#key ⇒ Symbol
readonly
Canonical key identifier (e.g. :slack_client_id).
-
#requires_restart ⇒ Boolean
readonly
When true the admin UI surfaces a “restart required” badge.
-
#sensitive ⇒ Boolean
readonly
When true the value is masked in the admin UI.
Instance Attribute Details
#admin_visible ⇒ Boolean (readonly)
Returns when false the key is resolvable but hidden from the admin UI.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#category ⇒ String (readonly)
Returns grouping for the admin UI (e.g. “slack”, “google_oauth”).
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#default ⇒ String? (readonly)
Returns static default returned when neither DB nor ENV has a value.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#env_var ⇒ String (readonly)
Returns name of the ENV variable used as fallback / seed source.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#input_type ⇒ Symbol (readonly)
Returns admin UI input widget: :string (default, single line) or :textarea.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#key ⇒ Symbol (readonly)
Returns canonical key identifier (e.g. :slack_client_id).
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#requires_restart ⇒ Boolean (readonly)
Returns when true the admin UI surfaces a “restart required” badge.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |
#sensitive ⇒ Boolean (readonly)
Returns when true the value is masked in the admin UI.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/collavre/integration_settings/key_definition.rb', line 23 KeyDefinition = Struct.new( :key, :category, :sensitive, :requires_restart, :env_var, :default, :input_type, :admin_visible, keyword_init: true ) |