Class: AgentsControl::Doctor::Check
- Inherits:
-
Struct
- Object
- Struct
- AgentsControl::Doctor::Check
- Defined in:
- lib/agents_control/doctor.rb
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#fix ⇒ Object
Returns the value of attribute fix.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
11 12 13 |
# File 'lib/agents_control/doctor.rb', line 11 def detail @detail end |
#fix ⇒ Object
Returns the value of attribute fix
11 12 13 |
# File 'lib/agents_control/doctor.rb', line 11 def fix @fix end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/agents_control/doctor.rb', line 11 def name @name end |
#status ⇒ Object
Returns the value of attribute status
11 12 13 |
# File 'lib/agents_control/doctor.rb', line 11 def status @status end |
Instance Method Details
#failed? ⇒ Boolean
13 |
# File 'lib/agents_control/doctor.rb', line 13 def failed? = status == :fail |
#icon ⇒ Object
14 |
# File 'lib/agents_control/doctor.rb', line 14 def icon = { ok: "✓", warn: "!", fail: "✗" }[status] |
#ok? ⇒ Boolean
12 |
# File 'lib/agents_control/doctor.rb', line 12 def ok? = status == :ok |