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



108
109
110
111
112
113
114
115
# File 'lib/happy_mapper_tools/stig_checklist.rb', line 108

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