Method: Inspec::Control#to_hash

Defined in:
lib/inspec/objects/control.rb

#to_hashObject



20
21
22
# File 'lib/inspec/objects/control.rb', line 20

def to_hash
  { id: id, title: title, desc: desc, impact: impact, tests: tests.map(&:to_hash), tags: tags.map(&:to_hash) }
end