Class: SourceMonitor::Setup::Verification::Result
- Inherits:
-
Struct
- Object
- Struct
- SourceMonitor::Setup::Verification::Result
- Defined in:
- lib/source_monitor/setup/verification/result.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#remediation ⇒ Object
Returns the value of attribute remediation.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details
8 9 10 |
# File 'lib/source_monitor/setup/verification/result.rb', line 8 def details @details end |
#key ⇒ Object
Returns the value of attribute key
8 9 10 |
# File 'lib/source_monitor/setup/verification/result.rb', line 8 def key @key end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/source_monitor/setup/verification/result.rb', line 8 def name @name end |
#remediation ⇒ Object
Returns the value of attribute remediation
8 9 10 |
# File 'lib/source_monitor/setup/verification/result.rb', line 8 def remediation @remediation end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/source_monitor/setup/verification/result.rb', line 8 def status @status end |
Instance Method Details
#as_json(_options = nil) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/source_monitor/setup/verification/result.rb', line 28 def as_json( = nil) { key: key, name: name, status: status, details: details, remediation: remediation } end |
#error? ⇒ Boolean
24 25 26 |
# File 'lib/source_monitor/setup/verification/result.rb', line 24 def error? status == :error end |
#ok? ⇒ Boolean
16 17 18 |
# File 'lib/source_monitor/setup/verification/result.rb', line 16 def ok? status == :ok end |
#warning? ⇒ Boolean
20 21 22 |
# File 'lib/source_monitor/setup/verification/result.rb', line 20 def warning? status == :warning end |