Class: RailsWayback::Doctor::Result
- Inherits:
-
Struct
- Object
- Struct
- RailsWayback::Doctor::Result
- Defined in:
- lib/rails_wayback/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
17 18 19 |
# File 'lib/rails_wayback/doctor.rb', line 17 def checks @checks end |
Instance Method Details
#exit_status ⇒ Object
22 23 24 |
# File 'lib/rails_wayback/doctor.rb', line 22 def exit_status ready? ? 0 : 1 end |
#ready? ⇒ Boolean
18 19 20 |
# File 'lib/rails_wayback/doctor.rb', line 18 def ready? checks.none?(&:error?) end |