Class: Mxrb::DoctorReport
- Inherits:
-
Data
- Object
- Data
- Mxrb::DoctorReport
- Defined in:
- lib/mxrb/doctor.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks
9 10 11 |
# File 'lib/mxrb/doctor.rb', line 9 def checks @checks end |
#root ⇒ Object (readonly)
Returns the value of attribute root
9 10 11 |
# File 'lib/mxrb/doctor.rb', line 9 def root @root end |
Instance Method Details
#errors ⇒ Object
11 |
# File 'lib/mxrb/doctor.rb', line 11 def errors = checks.select { _1.status == :error } |
#valid? ⇒ Boolean
10 |
# File 'lib/mxrb/doctor.rb', line 10 def valid? = checks.all? { _1.status != :error } |
#warnings ⇒ Object
12 |
# File 'lib/mxrb/doctor.rb', line 12 def warnings = checks.select { _1.status == :warning } |