Class: Reviewer::Doctor::Report::Discovery
- Inherits:
-
Struct
- Object
- Struct
- Reviewer::Doctor::Report::Discovery
- Defined in:
- lib/reviewer/doctor/report.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#observations ⇒ Object
Returns the value of attribute observations.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
26 27 28 |
# File 'lib/reviewer/doctor/report.rb', line 26 def key @key end |
#name ⇒ Object
Returns the value of attribute name
26 27 28 |
# File 'lib/reviewer/doctor/report.rb', line 26 def name @name end |
#observations ⇒ Object
Returns the value of attribute observations
26 27 28 |
# File 'lib/reviewer/doctor/report.rb', line 26 def observations @observations end |
Instance Method Details
#to_h ⇒ Object
27 |
# File 'lib/reviewer/doctor/report.rb', line 27 def to_h = { key: key, name: name, observations: observations.map(&:to_h) } |