Method: Inspec::Control#to_hash

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

#to_hashObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/inspec/objects/control.rb', line 21

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