Method: Controls::SecurityControlFinding#to_s

Defined in:
lib/controls/objects/security_control_finding.rb

#to_sString

Returns a representation of the findings prefixed with the collection name.

Returns:

  • (String)

    a representation of the findings prefixed with the collection name



11
12
13
# File 'lib/controls/objects/security_control_finding.rb', line 11

def to_s
  "#{name}: #{findings.map { |finding| "\n  #{finding}"  }.join}"
end