Class: RailsWayback::Doctor::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_wayback/doctor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checks ⇒ Object

Returns the value of attribute checks

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Boolean)


18
19
20
# File 'lib/rails_wayback/doctor.rb', line 18

def ready?
  checks.none?(&:error?)
end