Module: LcpRuby::Auditing::Registry
- Defined in:
- lib/lcp_ruby/auditing/registry.rb
Class Method Summary collapse
-
.audit_model_class ⇒ Class?
Returns the audit model class from the registry.
-
.available? ⇒ Boolean
Whether auditing infrastructure is ready (audit model exists and validated).
-
.clear! ⇒ Object
Full reset — called from LcpRuby.reset!.
-
.mark_available! ⇒ Object
Mark registry as available (called after contract validation passes).
Class Method Details
.audit_model_class ⇒ Class?
Returns the audit model class from the registry.
22 23 24 25 |
# File 'lib/lcp_ruby/auditing/registry.rb', line 22 def audit_model_class return nil unless available? LcpRuby.registry.model_for(LcpRuby.configuration.audit_model) end |
.available? ⇒ Boolean
Whether auditing infrastructure is ready (audit model exists and validated).
6 7 8 |
# File 'lib/lcp_ruby/auditing/registry.rb', line 6 def available? @available == true end |
.clear! ⇒ Object
Full reset — called from LcpRuby.reset!
16 17 18 |
# File 'lib/lcp_ruby/auditing/registry.rb', line 16 def clear! @available = false end |
.mark_available! ⇒ Object
Mark registry as available (called after contract validation passes).
11 12 13 |
# File 'lib/lcp_ruby/auditing/registry.rb', line 11 def mark_available! @available = true end |