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
7 8 9 |
# File 'lib/boring_backup/commands/doctor.rb', line 7 def checks @checks end |
Instance Method Details
#failures ⇒ Object
10 |
# File 'lib/boring_backup/commands/doctor.rb', line 10 def failures = checks.select(&:failed?) |
#success? ⇒ Boolean
8 |
# File 'lib/boring_backup/commands/doctor.rb', line 8 def success? = checks.none?(&:failed?) |