Method: Inspec::Control#to_hash

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

#to_hashObject



14
15
16
# File 'lib/inspec/objects/control.rb', line 14

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