Class: BoringBackup::Commands::DoctorResult
- Inherits:
-
Struct
- Object
- Struct
- BoringBackup::Commands::DoctorResult
- Defined in:
- lib/boring_backup/commands/doctor.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
Instance Method Summary collapse
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks
6 7 8 |
# File 'lib/boring_backup/commands/doctor.rb', line 6 def checks @checks end |
Instance Method Details
#failures ⇒ Object
9 |
# File 'lib/boring_backup/commands/doctor.rb', line 9 def failures = checks.select(&:failed?) |
#success? ⇒ Boolean
7 |
# File 'lib/boring_backup/commands/doctor.rb', line 7 def success? = checks.none?(&:failed?) |