Method: Inspec::Control#to_hash
- Defined in:
- lib/inspec/objects/control.rb
#to_hash ⇒ Object
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: .map(&:to_hash) } end |