Class: Controls::SecurityControlFinding

Inherits:
Dish::Plate
  • Object
show all
Defined in:
lib/controls/objects/security_control_finding.rb

Overview

An object to represent the highest level of the finding API resources

Instance Method Summary collapse

Instance Method Details

#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