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

#fixString? (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)

#messageString (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)

#nameString (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)

#statusSymbol (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)