Class: Insika::Doctor::Finding
- Inherits:
-
Data
- Object
- Data
- Insika::Doctor::Finding
- Defined in:
- lib/insika/doctor.rb
Overview
severity: :ok (green) | :info | :warn | :error. fix = a 0-arg proc or nil.
Instance Attribute Summary collapse
-
#check ⇒ Object
readonly
Returns the value of attribute check.
-
#fix ⇒ Object
readonly
Returns the value of attribute fix.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#check ⇒ Object (readonly)
Returns the value of attribute check
16 17 18 |
# File 'lib/insika/doctor.rb', line 16 def check @check end |
#fix ⇒ Object (readonly)
Returns the value of attribute fix
16 17 18 |
# File 'lib/insika/doctor.rb', line 16 def fix @fix end |
#message ⇒ Object (readonly)
Returns the value of attribute message
16 17 18 |
# File 'lib/insika/doctor.rb', line 16 def @message end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity
16 17 18 |
# File 'lib/insika/doctor.rb', line 16 def severity @severity end |
Instance Method Details
#error? ⇒ Boolean
19 |
# File 'lib/insika/doctor.rb', line 19 def error? = severity == :error |
#fixable? ⇒ Boolean
17 |
# File 'lib/insika/doctor.rb', line 17 def fixable? = !fix.nil? |
#ok? ⇒ Boolean
18 |
# File 'lib/insika/doctor.rb', line 18 def ok? = severity == :ok |
#to_h ⇒ Object
20 |
# File 'lib/insika/doctor.rb', line 20 def to_h = { "check" => check, "severity" => severity.to_s, "message" => , "fixable" => fixable? } |