Class: RailsAiBridge::Doctor::Check

Inherits:
Data
  • Object
show all
Defined in:
lib/rails_ai_bridge/doctor/check.rb

Overview

Immutable result row for a single diagnostic check.

Instance Attribute Summary collapse

Instance Attribute Details

#fix ⇒ String? (readonly)

Returns suggested remediation when not :pass.

Returns:

  • (String, nil) —

    suggested remediation when not :pass



15
# File 'lib/rails_ai_bridge/doctor/check.rb', line 15

Check = Data.define(:name, :status, :message, :fix)

#message ⇒ String (readonly)

Returns human-readable outcome.

Returns:

  • (String) —

    human-readable outcome



15
# File 'lib/rails_ai_bridge/doctor/check.rb', line 15

Check = Data.define(:name, :status, :message, :fix)

#name ⇒ String (readonly)

Returns short label shown in reports (e.g. "Schema").

Returns:

  • (String) —

    short label shown in reports (e.g. "Schema")



15
# File 'lib/rails_ai_bridge/doctor/check.rb', line 15

Check = Data.define(:name, :status, :message, :fix)

#status ⇒ Symbol (readonly)

Returns :pass, :warn, or :fail.

Returns:

  • (Symbol) —

    :pass, :warn, or :fail



15
# File 'lib/rails_ai_bridge/doctor/check.rb', line 15

Check = Data.define(:name, :status, :message, :fix)