Class: Mxrb::DoctorReport

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checksObject (readonly)

Returns the value of attribute checks

Returns:

  • (Object)

    the current value of checks



9
10
11
# File 'lib/mxrb/doctor.rb', line 9

def checks
  @checks
end

#rootObject (readonly)

Returns the value of attribute root

Returns:

  • (Object)

    the current value of root



9
10
11
# File 'lib/mxrb/doctor.rb', line 9

def root
  @root
end

Instance Method Details

#errorsObject



11
# File 'lib/mxrb/doctor.rb', line 11

def errors = checks.select { _1.status == :error }

#valid?Boolean

Returns:

  • (Boolean)


10
# File 'lib/mxrb/doctor.rb', line 10

def valid? = checks.all? { _1.status != :error }

#warningsObject



12
# File 'lib/mxrb/doctor.rb', line 12

def warnings = checks.select { _1.status == :warning }