Class: Pgbus::Doctor::Check
- Inherits:
-
Struct
- Object
- Struct
- Pgbus::Doctor::Check
- Defined in:
- lib/pgbus/doctor.rb
Overview
A single check result. status is one of :ok, :warn, :fail.
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#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
20 21 22 |
# File 'lib/pgbus/doctor.rb', line 20 def detail @detail end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/pgbus/doctor.rb', line 20 def name @name end |
#status ⇒ Object
Returns the value of attribute status
20 21 22 |
# File 'lib/pgbus/doctor.rb', line 20 def status @status end |
Instance Method Details
#to_h ⇒ Object
21 22 23 |
# File 'lib/pgbus/doctor.rb', line 21 def to_h { name: name, status: status, detail: detail } end |