Class: HappyMapperTools::StigChecklist::Checklist

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/happy_mapper_tools/stig_checklist.rb

Instance Method Summary collapse

Instance Method Details

#where(attrib, data) ⇒ Object



89
90
91
92
93
94
95
96
# File 'lib/happy_mapper_tools/stig_checklist.rb', line 89

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