Class: Reviewer::Doctor::Report::Discovery

Inherits:
Struct
  • Object
show all
Defined in:
lib/reviewer/doctor/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • the current value of key



26
27
28
# File 'lib/reviewer/doctor/report.rb', line 26

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • the current value of name



26
27
28
# File 'lib/reviewer/doctor/report.rb', line 26

def name
  @name
end

#observationsObject

Returns the value of attribute observations

Returns:

  • the current value of observations



26
27
28
# File 'lib/reviewer/doctor/report.rb', line 26

def observations
  @observations
end

Instance Method Details

#to_hObject



27
# File 'lib/reviewer/doctor/report.rb', line 27

def to_h = { key: key, name: name, observations: observations.map(&:to_h) }