Class: Checker::Results::Default
- Inherits:
-
Struct
- Object
- Struct
- Checker::Results::Default
- Defined in:
- lib/checker/results/default.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
Returns the value of attribute exitstatus.
Instance Method Summary collapse
Instance Attribute Details
#exitstatus ⇒ Object
Returns the value of attribute exitstatus
3 4 5 |
# File 'lib/checker/results/default.rb', line 3 def exitstatus @exitstatus end |
Instance Method Details
#status ⇒ Object
8 9 10 |
# File 'lib/checker/results/default.rb', line 8 def status exitstatus == 0 ? :ok : :fail end |
#success? ⇒ Boolean
4 5 6 |
# File 'lib/checker/results/default.rb', line 4 def success? exitstatus == 0 end |