class OkComputer::OptionalCheck
This check wraps another check and forces it to be successful so as to avoid triggering alerts.
Public Instance Methods
success?()
click to toggle source
Public: Always successful
# File lib/ok_computer/built_in_checks/optional_check.rb, line 8 def success? true end
to_text()
click to toggle source
Public: The text output of performing the check
Returns a String
# File lib/ok_computer/built_in_checks/optional_check.rb, line 15 def to_text "#{__getobj__.to_text} (OPTIONAL)" end