Class: HappyMapperTools::StigChecklist::Checklist
- Includes:
- HappyMapper
- Defined in:
- lib/happy_mapper_tools/stig_checklist.rb
Instance Method Summary collapse
Instance Method Details
#where(attrib, data) ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/happy_mapper_tools/stig_checklist.rb', line 83 def where(attrib, data) stig.istig.vuln.each do |vuln| if vuln.stig_data.any? { |element| element.attrib == attrib && element.data == data } # TODO: Handle multiple objects that match the condition return vuln end end end |