Class: Reviewer::Doctor::Report::Observation
- Inherits:
-
Struct
- Object
- Struct
- Reviewer::Doctor::Report::Observation
- Defined in:
- lib/reviewer/doctor/report.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#location ⇒ Object
Returns the value of attribute location.
-
#path ⇒ Object
Returns the value of attribute path.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
18 19 20 |
# File 'lib/reviewer/doctor/report.rb', line 18 def kind @kind end |
#location ⇒ Object
Returns the value of attribute location
18 19 20 |
# File 'lib/reviewer/doctor/report.rb', line 18 def location @location end |
#path ⇒ Object
Returns the value of attribute path
18 19 20 |
# File 'lib/reviewer/doctor/report.rb', line 18 def path @path end |
#value ⇒ Object
Returns the value of attribute value
18 19 20 |
# File 'lib/reviewer/doctor/report.rb', line 18 def value @value end |
Instance Method Details
#to_h ⇒ Object
19 20 21 22 23 |
# File 'lib/reviewer/doctor/report.rb', line 19 def to_h source = { path: path } source[:location] = location if location { kind: kind, value: value, source: source }.compact end |