Method: Inspec::Control#to_hash

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

#to_hashObject



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

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