Class: Smith::Doctor::Check
- Inherits:
-
Data
- Object
- Data
- Smith::Doctor::Check
- Defined in:
- lib/smith/doctor/check.rb
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail
5 6 7 |
# File 'lib/smith/doctor/check.rb', line 5 def detail @detail end |
#message ⇒ Object (readonly)
Returns the value of attribute message
5 6 7 |
# File 'lib/smith/doctor/check.rb', line 5 def @message end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/smith/doctor/check.rb', line 5 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status
5 6 7 |
# File 'lib/smith/doctor/check.rb', line 5 def status @status end |
Instance Method Details
#fail? ⇒ Boolean
7 |
# File 'lib/smith/doctor/check.rb', line 7 def fail? = status == :fail |
#pass? ⇒ Boolean
6 |
# File 'lib/smith/doctor/check.rb', line 6 def pass? = status == :pass |
#skip? ⇒ Boolean
9 |
# File 'lib/smith/doctor/check.rb', line 9 def skip? = status == :skip |
#warn? ⇒ Boolean
8 |
# File 'lib/smith/doctor/check.rb', line 8 def warn? = status == :warn |